From 828ce07ca5e38884f97d63141a657bdbbfc0bde8 Mon Sep 17 00:00:00 2001 From: Oliver Gugger Date: Mon, 3 Oct 2022 13:22:32 +0200 Subject: [PATCH] cmd/lncli: add p2tr address type to account import --- cmd/lncli/walletrpc_active.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/lncli/walletrpc_active.go b/cmd/lncli/walletrpc_active.go index 870464f61..5f3d082bf 100644 --- a/cmd/lncli/walletrpc_active.go +++ b/cmd/lncli/walletrpc_active.go @@ -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") } }