Skip to content

Commit e366408

Browse files
committed
descriptor: remove unreachable verification for pkh
1 parent fc7b214 commit e366408

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/script/descriptor.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1787,10 +1787,6 @@ std::vector<std::unique_ptr<DescriptorImpl>> ParseScript(uint32_t& key_exp_index
17871787
ret.emplace_back(std::make_unique<PKHDescriptor>(std::move(pubkey)));
17881788
}
17891789
return ret;
1790-
} else if (ctx != ParseScriptContext::P2TR && Func("pkh", expr)) {
1791-
// Under Taproot, always the Miniscript parser deal with it.
1792-
error = "Can only have pkh at top level, in sh(), wsh(), or in tr()";
1793-
return {};
17941790
}
17951791
if (ctx == ParseScriptContext::TOP && Func("combo", expr)) {
17961792
auto pubkeys = ParsePubkey(key_exp_index, expr, ctx, out, error);

0 commit comments

Comments
 (0)