Skip to content

replace BIP320 with BIP323 for version rolling limitations#200

Draft
plebhash wants to merge 1 commit into
stratum-mining:mainfrom
plebhash:2026-06-15-bip323
Draft

replace BIP320 with BIP323 for version rolling limitations#200
plebhash wants to merge 1 commit into
stratum-mining:mainfrom
plebhash:2026-06-15-bip323

Conversation

@plebhash

@plebhash plebhash commented Jun 16, 2026

Copy link
Copy Markdown
Member

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/s
  • 2^(NONCE_BITS + BIP323_VERSION_ROLLING_BITS) = 2^(32 + 24) = 2^56 = ~72PH/s

where NONCE_BITS = 32 and BIP320_VERSION_ROLLING_BITS = 16.
The size of the search space for one Standard Job, given a fixed nTime field, is 2^(NONCE_BITS + BIP323_VERSION_ROLLING_BITS) = ~72PH/s, where NONCE_BITS = 32 and BIP323_VERSION_ROLLING_BITS = 24.

@plebhash
plebhash force-pushed the 2026-06-15-bip323 branch from 157b2c4 to e8b7aae Compare June 16, 2026 00:45
Comment thread 05-Mining-Protocol.md
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).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably worth highlighting this change in the PR description and/or making it a separate commit, including the calculation.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added to PR description

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BIP323 adaptations

2 participants