mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-06-29 02:00:54 +02:00
multi: forward address and import calls over RPC
In order to support the full range of on-chain functionality, including importing watch-only accounts in the watch-only instance, we need to forward some calls like creating new addresses or importing accounts to the remote signing instance.
This commit is contained in:
@ -683,7 +683,8 @@ func (d *RPCSignerWalletImpl) BuildChainControl(
|
||||
)
|
||||
|
||||
rpcKeyRing, err := rpcwallet.NewRPCKeyRing(
|
||||
baseKeyRing, d.DefaultWalletImpl.cfg.RemoteSigner,
|
||||
baseKeyRing, walletController,
|
||||
d.DefaultWalletImpl.cfg.RemoteSigner,
|
||||
rpcwallet.DefaultRPCTimeout,
|
||||
)
|
||||
if err != nil {
|
||||
@ -697,7 +698,7 @@ func (d *RPCSignerWalletImpl) BuildChainControl(
|
||||
lnWalletConfig := lnwallet.Config{
|
||||
Database: partialChainControl.Cfg.ChanStateDB,
|
||||
Notifier: partialChainControl.ChainNotifier,
|
||||
WalletController: walletController,
|
||||
WalletController: rpcKeyRing,
|
||||
Signer: rpcKeyRing,
|
||||
FeeEstimator: partialChainControl.FeeEstimator,
|
||||
SecretKeyRing: rpcKeyRing,
|
||||
|
Reference in New Issue
Block a user