cmd/lncli: add p2tr address type to account import

This commit is contained in:
Oliver Gugger 2022-10-03 13:22:32 +02:00
parent bc5638428e
commit 828ce07ca5
No known key found for this signature in database
GPG Key ID: 8E4256593F177720

View File

@ -93,9 +93,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")
}
}