From 366ae00b779acd59a61719422f0597acb17fb3e0 Mon Sep 17 00:00:00 2001 From: brunoerg Date: Mon, 23 Dec 2024 14:55:26 -0300 Subject: [PATCH] descriptor: Assume `ParseScript` is not being called with a P2WPKH context --- src/script/descriptor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/script/descriptor.cpp b/src/script/descriptor.cpp index 41fdef3ac49..2e1a30744ec 100644 --- a/src/script/descriptor.cpp +++ b/src/script/descriptor.cpp @@ -1761,7 +1761,7 @@ struct KeyParser { std::vector> ParseScript(uint32_t& key_exp_index, Span& sp, ParseScriptContext ctx, FlatSigningProvider& out, std::string& error) { using namespace script; - + Assume(ctx == ParseScriptContext::TOP || ctx == ParseScriptContext::P2SH || ctx == ParseScriptContext::P2WSH || ctx == ParseScriptContext::P2TR); std::vector> ret; auto expr = Expr(sp); if (Func("pk", expr)) {