Skip to content

BIP95: Change proposed Testnet 5 genesis block structure - #2347

Merged
jonatack merged 1 commit into
bitcoin:masterfrom
ajtowns:202611-bip95-bump
Nov 6, 2026
Merged

jonatack merged 1 commit into
bitcoin:masterfrom
ajtowns:202611-bip95-bump

Conversation

@ajtowns

@ajtowns ajtowns commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

This moves the anti-pre-mine commitment back into pszTimestamp and keeps it as ASCII text, rather than using it as a fake public key. The genesis transaction's output is replaced by an OP_RETURN to avoid confusion over spendability. Using the OP_RETURN output and nVersion rolling for additional nonce bits are explicitly allowed.

Comment thread bip-0095.md Resolved
@jonatack jonatack added Proposed BIP modification PR by non-owner to update BIP content Pending acceptance This BIP modification requires sign-off by the champion of the BIP being modified labels Nov 4, 2026
@jonatack

jonatack commented Nov 4, 2026 •

Copy link
Copy Markdown
Member

cc BIP authors @fjahr @polespinasa

Comment thread bip-0095.md
- `Message` carries a recent Bitcoin mainnet block hash as an anti-pre-mine
commitment, serving the same purpose as the newspaper headline in
Bitcoin's mainnet genesis block.
- `Time stamp` is the time of mining or that of the block which hash is

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

So, which of the two is it?

Or do you mean "start with the timestamp of the mainnet block, and roll it forward to current time as you exhaust the search space"? But is it really necessary with nonce + 8 bytes of extranonce + version rolling?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I don't think it's necessary (1M diff should need about 52 bits of nonce space, so 64 bits of extranonce alone should certainly cover it, plus 48-56 bits of header nonce via BIP320 or BIP323 nVersion rolling). But miners designed for mainnet may roll the timestamp by default, and I don't believe either stratumv1 or stratumv2 provides any way of even specifying otherwise, so I think it's better to leave it flexible.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Makes sense.

@murchandamus murchandamus left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Good changes. Using an OP_RETURN output is a neat idea. Having the commitment in the coinbase field also seems more familiar.

Comment thread bip-0095.md Outdated
output. It is `OP_RETURN` followed by a push of 8-bytes of extranonce
space, as it is unspendable in any event, and this avoids bike shedding
over its content.
- `Message` carries a recent Bitcoin mainnet block hash as an anti-pre-mine

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This previously said “in the coinbase input script”, which still seems to be the intention. I am confused that this part was dropped.

@stevenroose

Copy link
Copy Markdown
Contributor

LGTM

This moves the anti-pre-mine commitment back into `pszTimestamp` and
keeps it as ASCII text, rather than using it as a fake public key. The
genesis transaction's output is replaced by an `OP_RETURN` to avoid
confusion over spendability. Using the `OP_RETURN` output and `nVersion`
rolling for additional nonce bits are explicitly allowed.

@murchandamus murchandamus left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, waiting for owner sign-off.

@polespinasa polespinasa left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good to me ACK :)

@jonatack

jonatack commented Nov 5, 2026

Copy link
Copy Markdown
Member

@fjahr any thoughts?

@jonatack jonatack removed the Pending acceptance This BIP modification requires sign-off by the champion of the BIP being modified label Nov 5, 2026
@fjahr

fjahr commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

ACK 69ec29d

I would have liked some additional context in the description that this makes the mining of the Genesis block easier with a pool and that there is a concrete plan to do a fair, decentralized bootstrap but I guess the change already got enough attention and agreement without that info :)

We can add an acknowledgement when the actual Genesis block is added. It may also be interesting to add an informational section to the BIP how the fair bootstrap worked when it was successful, so it is documented for potential future interest. But not sure the BIP is the best place for it.

@jonatack
jonatack merged commit c9547b9 into bitcoin:master Nov 6, 2026
4 checks passed
@jonatack

jonatack commented Nov 6, 2026

Copy link
Copy Markdown
Member

Thanks @fjahr. Please open a follow-up for your suggestions, if you like.

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

Labels

Proposed BIP modification PR by non-owner to update BIP content

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants