mirror of
https://github.com/lightningnetwork/lnd.git
synced 2024-11-19 01:43:16 +01:00
cmd/lncli: add p2tr address type to account import
This commit is contained in:
parent
2ec4e5bdbd
commit
cfe30ed674
@ -82,9 +82,11 @@ func parseAddrType(addrTypeStr string) (walletrpc.AddressType, error) {
|
||||
return walletrpc.AddressType_NESTED_WITNESS_PUBKEY_HASH, nil
|
||||
case "np2wkh-p2wkh":
|
||||
return walletrpc.AddressType_HYBRID_NESTED_WITNESS_PUBKEY_HASH, nil
|
||||
case "p2tr":
|
||||
return walletrpc.AddressType_TAPROOT_PUBKEY, nil
|
||||
default:
|
||||
return 0, errors.New("invalid address type, supported address " +
|
||||
"types are: p2wkh, np2wkh, and np2wkh-p2wkh")
|
||||
"types are: p2wkh, p2tr, np2wkh, and np2wkh-p2wkh")
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user