forked from bitcoin/bitcoin
-
Notifications
You must be signed in to change notification settings - Fork 8
BIP54 "Consensus Cleanup" implementation #99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
ajtowns
merged 23 commits into
bitcoin-inquisition:29.x
from
darosior:2509_inquisition_consensus_cleanup
Feb 6, 2026
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
67a2c96
chainparams: encapsulate deployment configuration logic
darosior 6665296
chainparams: make deployment configuration options always available i…
darosior 832bf23
======= Consensus Cleanup BEGINS HERE =======
darosior 337b5b7
binana: add Consensus Cleanup
darosior bba7033
scripted-diff: rename MAX_TX_LEGACY_SIGOPS to MAX_TX_BIP54_SIGOPS
darosior 9a93ad6
moveonly: move CheckSigopsBIP54 from policy to consensus
darosior 0c95b4e
validation: make BIP54 sigops check consensus-critical
darosior e042fb3
qa: add to utilities a version of SignSignature for Taproot inputs
darosior 7cf3bcd
qa: extensive unit tests for BIP54 legacy sigops limit
darosior dd6ec8a
fuzz: add a fuzz target for the BIP54 sigops check
darosior d1513dd
scripted-diff: rename testnet4 timewarp constant
darosior 5cb69e2
miner: update a timewarp comment to refer specifically to BIP 54
darosior 565d62f
consensus: prevent timewarp attacks with a 2h grace period
darosior 943cfb0
consensus: prevent negative difficulty adjustment intervals
darosior d003a5c
qa: BIP54 test vectors for timewarp and Murch-Zawy
darosior d2b456e
consensus: mandate coinbase transactions be timelocked to block height
darosior f44c3b4
qa: BIP54 test vectors for restrictions on coinbase transactions
darosior b663f62
Avoid creating <= 64-byte transactions in most functional tests.
TheBlueMatt 98244e6
[test] Separate 64B and 63B tx size tests
ajtowns b975047
consensus: make 64 bytes transactions invalid
darosior bccf3bb
qa: unit tests for BIP54 rule on 64-byte transactions (with JSON test…
darosior 09123d8
scripted-diff: qa: rename constant for BIP54 sigops limit
darosior 55cd9a5
qa: end-to-end test all BIP54 mitigations
darosior File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| { | ||
| "binana": [2025, 1, 0], | ||
| "deployment": "CONSENSUSCLEANUP", | ||
| "scriptverify": false, | ||
| "scriptverify_discourage": false, | ||
| "opcodes": {} | ||
| } |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.