Betting on Bitcoin Upgrades: A Smart Contract Wager on OP_CAT Activation

The inclusion of OP_SUCCESSx in a script will pass it unconditionally. It precedes any script execution rules to avoid the difficulties in specifying various edge cases, for example: OP_SUCCESSx in a script with an input stack larger than 1000 elements, OP_SUCCESSx after too many signature opcodes, or even scripts with conditionals lacking OP_ENDIF.

Link to code: bitcoin/src/script/interpreter.cpp at e5a00b24972461f7a181bc184dd461cedcce6161 · bitcoin/bitcoin · GitHub