mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-19 13:27:35 +02:00
Do not use CScript for tapleaf scripts until the tapleaf version is known
Prevents use of CScript methods until the tapleaf is known to be a tapscript.
This commit is contained in:
parent
60a00889b0
commit
8e3fc99427
8 changed files with 29 additions and 29 deletions
|
|
@ -1643,7 +1643,7 @@ std::unique_ptr<DescriptorImpl> InferScript(const CScript& script, ParseScriptCo
|
|||
for (const auto& [depth, script, leaf_ver] : *tree) {
|
||||
std::unique_ptr<DescriptorImpl> subdesc;
|
||||
if (leaf_ver == TAPROOT_LEAF_TAPSCRIPT) {
|
||||
subdesc = InferScript(script, ParseScriptContext::P2TR, provider);
|
||||
subdesc = InferScript(CScript(script.begin(), script.end()), ParseScriptContext::P2TR, provider);
|
||||
}
|
||||
if (!subdesc) {
|
||||
ok = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue