Skip to content

Commit

Permalink
descriptor: remove unreachable verification for pkh
Browse files Browse the repository at this point in the history
  • Loading branch information
brunoerg committed Dec 23, 2024
1 parent fc7b214 commit e366408
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/script/descriptor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1787,10 +1787,6 @@ std::vector<std::unique_ptr<DescriptorImpl>> ParseScript(uint32_t& key_exp_index
ret.emplace_back(std::make_unique<PKHDescriptor>(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);
Expand Down

0 comments on commit e366408

Please sign in to comment.