-
Notifications
You must be signed in to change notification settings - Fork 295
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
blockchain: Implement reject new script vers vote.
This implements the agenda for voting on rejecting new script versions until they have explicitly been enabled by a consensus rule change as defined in DCP0008 along with consensus tests. In particular, once the vote has passed and is active, script versions greater than 0 will no longer be accepted. Note that this does not implement block version bumps in the mining and validation code that will ultimately be needed since another consensus vote is expected to land before voting begins. The following is an overview of the changes: - Modify block validation to enforce the rejection of newer script versions in accordance with the state of the vote - Add tests to ensure proper behavior for new script versions as follows: - Ensure stake transactions still require version 0 scripts regardless of the state of the agenda - Regular transactions with script versions newer than 0 are rejected once the agenda is active - Transaction outputs that have a non-zero output and script that would make the output unspendable if it were version 0 are spendable with a nil signature script both before the agenda is active and remain spendable after it is active
- Loading branch information
Showing
4 changed files
with
123 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters