aliashraf
Legendary
Offline
Activity: 1456
Merit: 1174
Always remember the cause!
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
March 08, 2020, 08:21:53 AM Last edit: March 08, 2020, 08:33:36 AM by aliashraf |
|
OP, By definition, output scripts are processed when they are being spent and treated as input scripts. If an invalid opcode happens to reside in a branch that is never executed, it is ok, otherwise, it fails.
So, if you are embedding an invalid opcode in an output script that transaction could go to the blockchain without any objection but when you are trying to spend the relative UTXO you may found yourself in big trouble as the spending txn is the one that is suspected to fail.
By the way, once the long-awaited MAST proposal becomes operational, hopefully, the very little chance for a hypothetical stupid script processing engine to fail because of the mere existence of an invalid opcode in an unvisited branch of the (now) input transaction will vanish forever. MAST won't disclose unvisited execution branches at all, as you already know.
|