mako
mako copied to clipboard
script: Do not apply `SCRIPT_VERIFY_UPGRADABLE_NOPS` to OP_CHECKLOCKTIMEVERIFY/OP_CHECKSEQUENCEVERIFY
In btc_script_execute mako applies SCRIPT_VERIFY_UPGRADABLE_NOPS to OP_CHECKLOCKTIMEVERIFY and OP_CHECKSEQUENCEVERIFY, Bitcoin Core also did it in the past, but this verification was removed in https://github.com/bitcoin/bitcoin/pull/10699 in order to make all script validation flags backward compatible. I believe it should be applied here as well.