mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-05 18:52:29 +02:00
miniscript: make GetStackSize independent of P2WSH context
It was taking into account the P2WSH script push in the number of stack elements.
This commit is contained in:
@@ -973,7 +973,7 @@ void TestNode(const NodeRef& node, FuzzedDataProvider& provider)
|
||||
|
||||
if (nonmal_success) {
|
||||
// Non-malleable satisfactions are bounded by GetStackSize().
|
||||
assert(witness_nonmal.stack.size() <= *node->GetStackSize());
|
||||
assert(witness_nonmal.stack.size() <= *node->GetStackSize() + 1);
|
||||
// If a non-malleable satisfaction exists, the malleable one must also exist, and be identical to it.
|
||||
assert(mal_success);
|
||||
assert(witness_nonmal.stack == witness_mal.stack);
|
||||
|
||||
Reference in New Issue
Block a user