mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-06-29 02:00:54 +02:00
multi: add p2tr keyspend wallet support
This commit is contained in:
@ -1112,7 +1112,14 @@ func importWatchOnlyAccounts(wallet *wallet.Wallet,
|
||||
|
||||
for _, scope := range scopes {
|
||||
addrSchema := waddrmgr.ScopeAddrMap[waddrmgr.KeyScopeBIP0084]
|
||||
if scope.Scope.Purpose == waddrmgr.KeyScopeBIP0049Plus.Purpose {
|
||||
|
||||
// We want witness pubkey hash by default, except for BIP49
|
||||
// where we want mixed and BIP86 where we want taproot address
|
||||
// formats.
|
||||
switch scope.Scope.Purpose {
|
||||
case waddrmgr.KeyScopeBIP0049Plus.Purpose,
|
||||
waddrmgr.KeyScopeBIP0086.Purpose:
|
||||
|
||||
addrSchema = waddrmgr.ScopeAddrMap[scope.Scope]
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user