walletrpc+subserver_config: add coin selection strategy
With this commit we also add the config-level coin selection strategy to the wallet RPC server.
This commit is contained in:
2 files changed
+10
No files matched your search
@@ -197,6 +197,11 @@ func (s *subRPCServerConfigs) PopulateDependencies(cfg *Config,
|
||||
subCfgValue.FieldByName("CurrentNumAnchorChans").Set(
|
||||
reflect.ValueOf(cc.Wallet.CurrentNumAnchorChans),
|
||||
)
|
||||
subCfgValue.FieldByName("CoinSelectionStrategy").Set(
|
||||
reflect.ValueOf(
|
||||
cc.Wallet.Cfg.CoinSelectionStrategy,
|
||||
),
|
||||
)
|
||||
|
||||
case *autopilotrpc.Config:
|
||||
subCfgValue := extractReflectValue(subCfg)
|
||||
|
||||
Reference in new issue
Block a user