From e36640859089baabc46f68217843f96a3ebdc20c Mon Sep 17 00:00:00 2001 From: brunoerg Date: Sun, 22 Dec 2024 10:56:03 -0300 Subject: [PATCH] descriptor: remove unreachable verification for `pkh` --- src/script/descriptor.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/script/descriptor.cpp b/src/script/descriptor.cpp index 5026470edc..41fdef3ac4 100644 --- a/src/script/descriptor.cpp +++ b/src/script/descriptor.cpp @@ -1787,10 +1787,6 @@ std::vector> ParseScript(uint32_t& key_exp_index ret.emplace_back(std::make_unique(std::move(pubkey))); } return ret; - } else if (ctx != ParseScriptContext::P2TR && Func("pkh", expr)) { - // Under Taproot, always the Miniscript parser deal with it. - error = "Can only have pkh at top level, in sh(), wsh(), or in tr()"; - return {}; } if (ctx == ParseScriptContext::TOP && Func("combo", expr)) { auto pubkeys = ParsePubkey(key_exp_index, expr, ctx, out, error);