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
2024-02-06 12:25:46 +01:00
parent cbc11dac8f
commit f7198c4105
2 changed files with 10 additions and 0 deletions

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)