user139960: I completed a round trip transaction with the redeem script hash: 31vFvEkyAb2iusbPip36H9rVt6pxExuaVR, whose redeem script is OP_3 (0x53) (yes I know not secure).
I can understand OP_1 redeem script unlocking its P2SH UTXO as 1 is left on the stack after redeem script execution, but with OP_3, 3 is left on the stack. So how does this successfully execute?
Tx: 36ca5aede94112009621bda42b3e84f49f7aa45886837d1d51c6590a04fcb8e7

user5406: A script execution is successful if it ends with a non-empty stack whose top element is not 0. Therefore, a script consisting of only OP_3 will be successful.
You may also be interested in the topic “For a redeem script to satisfy the conditions of a script what must it leave on the stack post execution?” which describes the criteria for successful scripts in more detail (H/T Michael Folkson). I would recommend using testnet or signet for experimental transactions.

139960: <p>I completed a round trip transaction with the redeem script hash: <code>31vFvEkyAb2iusbPip36H9rVt6pxExuaVR</code>, whose redeem script is <code>OP_3 (0x53)</code> (yes I know not secure).</p>
<p>I can understand <code>OP_1</code> redeem script unlocking its P2SH UTXO as 1 is left on the stack after redeem script execution, but with <code>OP_3</code>, 3 is left on the stack. So how does this successfully execute?</p>
<p>Tx: <code>36ca5aede94112009621bda42b3e84f49f7aa45886837d1d51c6590a04fcb8e7</code></p>
 5406: <p>A script execution is successful if it ends with a non-empty stack whose top element is not 0. Therefore, a script consisting of only <code>OP_3</code> will be successful.</p>
<p>You may also be interested in the topic <a href="https://bitcoin.stackexchange.com/q/100413/5406"><em>“For a redeem script to satisfy the conditions of a script what must it leave on the stack post execution?”</em></a> which describes the criteria for successful scripts in more detail (H/T Michael Folkson). I would recommend <a href="https://bitcoin.stackexchange.com/q/17553/5406">using testnet or signet</a> for experimental transactions.</p>
