mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-08 04:54:52 +02:00
rpc: acquire global coin select lock in related RPCs
This ensures proper coin selection synchronization between lnd and users of the RPC to avoid potential double spend errors.
This commit is contained in:
@@ -153,6 +153,9 @@ func (s *subRPCServerConfigs) PopulateDependencies(cfg *Config, cc *chainControl
|
||||
subCfgValue.FieldByName("Wallet").Set(
|
||||
reflect.ValueOf(cc.wallet),
|
||||
)
|
||||
subCfgValue.FieldByName("CoinSelectionLocker").Set(
|
||||
reflect.ValueOf(cc.wallet),
|
||||
)
|
||||
subCfgValue.FieldByName("KeyRing").Set(
|
||||
reflect.ValueOf(cc.keyRing),
|
||||
)
|
||||
|
Reference in New Issue
Block a user