-
Notifications
You must be signed in to change notification settings - Fork 5.9k
BIP Draft: 24 nVersion bits for general purpose use #2116
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
Open
TheBlueMatt
wants to merge
1
commit into
bitcoin:master
Choose a base branch
from
TheBlueMatt:2026-02-more-bits
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+59
−0
Open
Changes from all commits
Commits
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,58 @@ | ||
| <pre> | ||
| BIP: ? | ||
| Title: 24 nVersion bits for general purpose use | ||
| Authors: Matt Corallo <bips@bluematt.me> | ||
| Status: Draft | ||
| Type: Specification | ||
| Assigned: ? | ||
| License: BSD-3-Clause OR CC0-1.0 | ||
| Discussion: 2026-02-26: https://gnusha.org/pi/bitcoindev/6fa0cb45-37d6-4b41-9ff8-03730fd96d6e@mattcorallo.com/ | ||
| Replaces: 320 | ||
| </pre> | ||
|
|
||
| ==Abstract== | ||
|
|
||
| 24 bits are reserved in the nVersion field as extra nonce space for miners, providing for additional | ||
| hashrate with header-only mining without relying on rolling nTime more often than once per second. | ||
|
|
||
| ==Motivation== | ||
|
|
||
| BIP 320 defined 16 bits of nVersion as nonce space for additional nonce space. It turns out that | ||
| this isn't enough, as some devices have started using 7 bits from nTime for extra nonce space (see | ||
| https://github.com/stratum-mining/sv2-spec/discussions/187). Given there's limited utility in 16 | ||
| bits of nVersion space for signaling, instead here we offer 24 bits of nVersion space as extra | ||
| nonce space. | ||
|
|
||
| ==Specification== | ||
|
|
||
| 24 bits from the block header nVersion field, starting from 5 and ending at 28 inclusive | ||
| (0x1fffffe0), are reserved for nonce use and removed from BIP8 and BIP9 specifications. A mask of | ||
| 0xe000001f should be applied to nVersion bits so bits 5-28 inclusive will be ignored for soft-fork | ||
| signalling and unknown soft-fork warnings. | ||
|
|
||
| ==Rationale== | ||
|
|
||
| Headers-only mining avoids mining devices (either ASICs or the firmware) from having to concern | ||
| themselves with the vast space of consensus logic (handling transactions, merkle trees, etc). It is | ||
| widely deployed in ASICs, but requires a substantial number of jobs fed across an entire device, | ||
| keeping the ASIC controller busy. Providing additional nonce space for the ASICs to roll without | ||
| needing fresh work from the controller may simplify ASIC design somewhat, and as been apparently | ||
| adopted in some miners by using extra space in nTime as extra nonce space. Doing so in nVersion | ||
| instead is preferable to using nTime. | ||
|
|
||
| ==Backwards Compatibility== | ||
|
|
||
| Non-upgraded nodes will interpret the reserved bits of this proposal as signals for soft forks, and | ||
| may additionally activate the warning system for unknown soft forks. | ||
|
|
||
| At the time of writing no soft forks which are being actively signaled for are using any of the 24 | ||
| bits reserved in this BIP. Future soft forks SHOULD NOT utilize those bits for activation signaling. | ||
|
|
||
| ==Acknowledgements== | ||
|
|
||
| Timo Hanke and Sergio Lerner for originally proposing 15-bit extra nNonce2. Btc Drak for writing BIP | ||
| 320. | ||
|
|
||
| ==Copyright== | ||
|
|
||
| This document is dual licensed as BSD 3-clause, and Creative Commons CC0 1.0 Universal. | ||
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.