From 558e26e66e0256d57f26d4c511dfb41c12efd698 Mon Sep 17 00:00:00 2001 From: ViniciusCestarii Date: Thu, 20 Aug 2026 10:18:19 -0300 Subject: [PATCH] test: cover OP_SUCCESSx bypassing the initial stack element size limit --- test/functional/feature_taproot.py | 1 + 1 file changed, 1 insertion(+) diff --git a/test/functional/feature_taproot.py b/test/functional/feature_taproot.py index a0c11fd6b81..188d2011424 100755 --- a/test/functional/feature_taproot.py +++ b/test/functional/feature_taproot.py @@ -1206,6 +1206,7 @@ def spenders_taproot_active(): add_spender(spenders, "opsuccess/bigpush", standard=False, tap=tap, leaf="bigpush_success", failure={"leaf": "bigpush_nop"}, **ERR_PUSH_SIZE) add_spender(spenders, "opsuccess/1001push", standard=False, tap=tap, leaf="1001push_success", failure={"leaf": "1001push_nop"}, **ERR_STACK_SIZE) add_spender(spenders, "opsuccess/1001inputs", standard=False, tap=tap, leaf="bare_success", inputs=[b'']*1001, failure={"leaf": "bare_nop"}, **ERR_STACK_SIZE) + add_spender(spenders, "opsuccess/bigstackelem", standard=False, tap=tap, leaf="bare_success", inputs=[random.randbytes(MAX_SCRIPT_ELEMENT_SIZE+1)], failure={"leaf": "bare_nop"}, **ERR_PUSH_SIZE) # Non-OP_SUCCESSx (verify that those aren't accidentally treated as OP_SUCCESSx) for opval in range(0, 0x100):