concept script upgrade in category bitcoin

appears as: Script upgrades
Grokking Bitcoin

This is an excerpt from Manning's book Grokking Bitcoin.

This method of script upgrades has been done for two operators so far:

Byte

Old code

New code

New meaning

b1 OP_NOP2 OP_CLTV Verify that the spending transaction has a high enough absolute lock time.
b2 OP_NOP3 OP_CSV Verify that the spending input has a high enough relative lock time.

Only 10 OP_NOP operators are available to use for script upgrades, and such upgrades are limited to exactly mimic the OP_NOP behavior if they don’t fail.