HomePhabricator

Discourage NOPs reserved for soft-fork upgrades
03914234b3c9Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Discourage NOPs reserved for soft-fork upgrades

NOP1 to NOP10 are reserved for future soft-fork upgrades. In the event
of an upgrade such NOPs have *VERIFY behavior, meaning that if their
arguments are not correct the script fails. Discouraging these NOPs by
rejecting transactions containing them from the mempool ensures that
we'll never accept transactions, nor mine blocks, with scripts that are
now invalid according to the majority of hashing power even if we're not
yet upgraded. Previously this wasn't an issue as the IsStandard() rules
didn't allow upgradable NOPs anyway, but 7f3b4e95 relaxed the
IsStandard() rules for P2SH redemptions allowing any redeemScript to be
spent.

We *do* allow upgradable NOPs in scripts so long as they are not
executed. This is harmless as there is no opportunity for the script to
be invalid post-upgrade.

Details

Provenance
Peter Todd <pete@petertodd.org>Authored on Sep 29 2014, 01:17
deadalnixPushed on May 14 2017, 22:04
Parents
rABC8adf45704767: Merge pull request #5212
Branches
Unknown
Tags
Unknown

Event Timeline

Peter Todd <pete@petertodd.org> committed rABC03914234b3c9: Discourage NOPs reserved for soft-fork upgrades (authored by Peter Todd <pete@petertodd.org>).Nov 18 2014, 03:22