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:
Oliver Gugger committed 2024-02-23 08:58:09 +01:00
1 parent cbc11dac8f
commit f7198c4105
2 files changed
+10

No files matched your search

+5
View File
@@ -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)