replace BIP320 with BIP323 for version rolling limitations#200
Draft
plebhash wants to merge 1 commit into
Draft
Conversation
plebhash
marked this pull request as draft
June 16, 2026 00:39
plebhash
force-pushed
the
2026-06-15-bip323
branch
from
June 16, 2026 00:45
157b2c4 to
e8b7aae
Compare
Sjors
reviewed
Jun 16, 2026
| Standard Jobs are distributed via the [`NewMiningJob`](#5315-newminingjob-server---client) message, which can ONLY be sent via [Standard Channels](#521-standard-channels). | ||
|
|
||
| Note that Mining Devices with hashrate above 280 TH/s will outrun the true time when rolling the `nTime` field. This is not necessarily a problem, as long as the Job remains valid within the limits defined by the `MAX_FUTURE_BLOCK_TIME` constant of the Bitcoin protocol (2 hours). | ||
| Note that Mining Devices with hashrate above 72 PH/s will outrun the true time when rolling the `nTime` field. This is not necessarily a problem, as long as the Job remains valid within the limits defined by the `MAX_FUTURE_BLOCK_TIME` constant of the Bitcoin protocol (2 hours). |
Contributor
There was a problem hiding this comment.
Probably worth highlighting this change in the PR description and/or making it a separate commit, including the calculation.
Member
Author
There was a problem hiding this comment.
added to PR description
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
close #199
BIP323 was merged:
as discussed in #193, this will allow us to lift Standard Channels HOM hashrate ceiling from ~280TH/s to ~72PH/s
2^(NONCE_BITS + BIP320_VERSION_ROLLING_BITS) = 2^(32 + 16) = 2^48 = ~280TH/s2^(NONCE_BITS + BIP323_VERSION_ROLLING_BITS) = 2^(32 + 24) = 2^56 = ~72PH/swhere
NONCE_BITS = 32andBIP320_VERSION_ROLLING_BITS = 16.The size of the search space for one Standard Job, given a fixed
nTimefield, is2^(NONCE_BITS + BIP323_VERSION_ROLLING_BITS) = ~72PH/s, whereNONCE_BITS = 32andBIP323_VERSION_ROLLING_BITS = 24.