mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-09 11:27:28 -03:00
descriptor: Assume ParseScript
is not being called with a P2WPKH context
This commit is contained in:
parent
e366408590
commit
366ae00b77
1 changed files with 1 additions and 1 deletions
|
@ -1761,7 +1761,7 @@ struct KeyParser {
|
||||||
std::vector<std::unique_ptr<DescriptorImpl>> ParseScript(uint32_t& key_exp_index, Span<const char>& sp, ParseScriptContext ctx, FlatSigningProvider& out, std::string& error)
|
std::vector<std::unique_ptr<DescriptorImpl>> ParseScript(uint32_t& key_exp_index, Span<const char>& sp, ParseScriptContext ctx, FlatSigningProvider& out, std::string& error)
|
||||||
{
|
{
|
||||||
using namespace script;
|
using namespace script;
|
||||||
|
Assume(ctx == ParseScriptContext::TOP || ctx == ParseScriptContext::P2SH || ctx == ParseScriptContext::P2WSH || ctx == ParseScriptContext::P2TR);
|
||||||
std::vector<std::unique_ptr<DescriptorImpl>> ret;
|
std::vector<std::unique_ptr<DescriptorImpl>> ret;
|
||||||
auto expr = Expr(sp);
|
auto expr = Expr(sp);
|
||||||
if (Func("pk", expr)) {
|
if (Func("pk", expr)) {
|
||||||
|
|
Loading…
Reference in a new issue