mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-27 06:01:48 +02:00
multi: add migrate-wallet-to-watch-only flag
To enable converting an existing wallet with private key material into a watch-only wallet on first startup with remote signing enabled, we add a new flag. Since the conversion is a destructive process, this shouldn't happen automatically just because remote signing is enabled.
This commit is contained in:
@@ -1612,7 +1612,10 @@ func (c *Config) ImplementationConfig(
|
||||
// watch-only source of chain and address data. But we don't need any
|
||||
// private key material in that btcwallet base wallet.
|
||||
if c.RemoteSigner.Enable {
|
||||
rpcImpl := NewRPCSignerWalletImpl(c, ltndLog, interceptor)
|
||||
rpcImpl := NewRPCSignerWalletImpl(
|
||||
c, ltndLog, interceptor,
|
||||
c.RemoteSigner.MigrateWatchOnly,
|
||||
)
|
||||
return &ImplementationCfg{
|
||||
GrpcRegistrar: rpcImpl,
|
||||
RestRegistrar: rpcImpl,
|
||||
|
Reference in New Issue
Block a user