Take a look at the commit I linked from my reply in the 64-bit discussion: 64 bit arithmetic soft fork - #18 by halseth
I basically comes down do defining a new SigVersion
. This value the interpreter already has access to, hence can choose to behave differently for certain opcodes based on the version.