Skip to content

BIP95: Add testnet5 genesis parameters - #2356

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

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

Conversation

@ajtowns

@ajtowns ajtowns commented Nov 14, 2026

Copy link
Copy Markdown
Contributor

@ajtowns

ajtowns commented Nov 14, 2026

Copy link
Copy Markdown
Contributor Author

cc @fjahr @polespinasa

@polespinasa

polespinasa commented Nov 14, 2026 •

Copy link
Copy Markdown
Member

ACK Lgtm, I've verified each character one by one by pointing my finger to the screen like my granma does :)

This one was to long so...

sliv3r@sliv3r-tuxedo:~$ echo "00c0302200000000000000000000000000000000000000000000000000000000000000008de2a6b556ecb56779c34481ede767f09b2ae214f37ab1ad34085b5cb699588c91ebf76affff0f1a31913d650101000000010000000000000000000000000000000000000000000000000000000000000000ffffffff5b04ffff001d01044c52323032362d31312d3134203937353734342030303030303030303030303030303030303030313233653236383165326638326163646362393433306131356565633234636338356234303036393164343739ffffffff0100f2052a010000000a6a0895ebf76a0200000000000000" > aj.txt
sliv3r@sliv3r-tuxedo:~$ echo "00c0302200000000000000000000000000000000000000000000000000000000000000008de2a6b556ecb56779c34481ede767f09b2ae214f37ab1ad34085b5cb699588c91ebf76affff0f1a31913d650101000000010000000000000000000000000000000000000000000000000000000000000000ffffffff5b04ffff001d01044c52323032362d31312d3134203937353734342030303030303030303030303030303030303030313233653236383165326638326163646362393433306131356565633234636338356234303036393164343739ffffffff0100f2052a010000000a6a0895ebf76a0200000000000000" > web.txt
sliv3r@sliv3r-tuxedo:~$ diff aj.txt web.txt 

@jonatack jonatack added the Proposed BIP modification PR by non-owner to update BIP content label Nov 14, 2026

@fjahr fjahr left a comment

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.

ACK f82c461

Checked that the values here line up with the ones on the website and plugged them into core and was able to sync with them.

The version should probably bumped to 0.4.0 with this update.

Comment thread bip-0095.md
Comment on lines -83 to -94
- `scriptPubKey` is the script public key in the coinbase transaction's
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` is a string in the coinbase input script, and 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
used in `Message`
- `nBits` is `0x1a0fffff`, per the raised minimum difficulty.
- `Version` is used for version-rolling to meet the difficulty.

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.

nit: I would prefer if we leave the rationale in for future reference

@jonatack jonatack 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.

ACK

@fjahr @ajtowns here is a suggested updated version for the feedback:

updated version diff

diff --git a/bip-0095.md b/bip-0095.md
index a47f9b7a..6cc0655c 100644
--- a/bip-0095.md
+++ b/bip-0095.md
@@ -9,7 +9,7 @@
   Assigned: 2026-06-22
   License: CC0-1.0
   Discussion: 2026-06-02: https://groups.google.com/g/bitcoindev/c/kGUMTxOvdJA
-  Version: 0.3.0
+  Version: 0.4.0
   Requires: 54
   Replaces: 94

@@ -76,35 +76,27 @@ from block 1, as specified above.
 
 ### Genesis Block
 
-TODO: Mine the block. The values below are placeholders. They are
-the genesis block's header fields together with the `Message` and
-`scriptPubKey` of its coinbase transaction. Notes for the miner:
-
-- `scriptPubKey` is the script public key in the coinbase transaction's
-  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` is a string in the coinbase input script, and 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.
+- `scriptPubKey` is the script public key in the coinbase transaction's
+  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.
 - `Time stamp` is the time of mining or that of the block which hash is
   used in `Message`
 - `nBits` is `0x1a0fffff`, per the raised minimum difficulty.
 - `Version` is used for version-rolling to meet the difficulty.
 
-Placeholders:
+ * Message: "2026-11-14 975744 0000000000000000000123e2681e2f82acdcb9430a15eec24cc85b400691d479"
+ * scriptPubKey: <code>6a0895ebf76a02000000</code>
+ * Time stamp: 1794632593
+ * Nonce: <code>0x653d9131</code>
+ * nBits: <code>0x1a0fffff</code>
+ * Version: <code>0x2230c000</code>
 
-> (Note, these values have the wrong nBits value (too low difficulty) and are pre-mined so are not suitable for use)
->
-> * Message: "2026-11-03 974343 00000000000000000000a86d6da2c1563d08668d9ec18cce58cb8c865d4a31c8"
-> * scriptPubKey: <code>0x6a089763e96a00000000</code>
-> * Time stamp: 1793680278
-> * Nonce: <code>0x73ba1699</code>
-> * nBits: <code>0x1b07fff8</code>
-> * Version: <code>0x201c4000</code>
->
-> The resulting Genesis block hash is <code>000000000001bd3ade1e24d07c1a3677d4868c34f2f1696fa419e3b9f061b1e0</code>, and the block hex is <code>00401c200000000000000000000000000000000000000000000000000000000000000000de48bbaa869592873fc4e5042f2931f9b42bb7e8ddeccd373df845d80983409b9663e96af8ff071b9916ba730101000000010000000000000000000000000000000000000000000000000000000000000000ffffffff5b04ffff001d01044c52323032362d31312d3033203937343334332030303030303030303030303030303030303030306138366436646132633135363364303836363864396563313863636535386362386338363564346133316338ffffffff0100f2052a010000000a6a089763e96a0000000000000000</code>.
+The resulting Genesis block hash is <code>00000000000008c1637e7d3252dc1c333d4546fd6fff6a474b200d674a91d497</code>, and the block hex is <code>00c0302200000000000000000000000000000000000000000000000000000000000000008de2a6b556ecb56779c34481ede767f09b2ae214f37ab1ad34085b5cb699588c91ebf76affff0f1a31913d650101000000010000000000000000000000000000000000000000000000000000000000000000ffffffff5b04ffff001d01044c52323032362d31312d3134203937353734342030303030303030303030303030303030303030313233653236383165326638326163646362393433306131356565633234636338356234303036393164343739ffffffff0100f2052a010000000a6a0895ebf76a0200000000000000</code>.
 
 ### Message Start
 
@@ -178,10 +170,11 @@ This document is licensed under the Creative Commons CC0 1.0 Universal license.
 
 ## Changelog
 
+* __0.4.0__ (2026-11-14):
+    * Add mined Testnet 5 genesis block parameters.
 * __0.3.0__ (2026-11-05):
     * Move commitment back to scriptSig, and use `OP_RETURN` for output.
 * __0.2.0__ (2026-11-05):
     * Change default P2P port from 18335 to 18353
 * __0.1.0__ (2026-06-02):
     * Initial draft
-

framicheli pushed a commit to framicheli/rbitcoin that referenced this pull request Nov 14, 2026
`--network testnet5` selects BIP 95's Testnet 5: the genesis block mined
at mainnet height 975,744 (`00000000000008c1…4a91d497`), a pow limit of
`0x1a0fffff` (the genesis `nBits`), no minimum-difficulty exception, no
BIP94, buried heights at 1, and a null BIP34 hash so BIP30 stays on.
The message start is `FIVE`, and the ports are Core's (P2P 18353, RPC
18352). Milestone 0, no minimum chain work, and no seeds: Core has none
yet, so a node needs `--connect`.

rust-bitcoin 0.32 has no Testnet 5 network. `ChainParams::network` is
`Testnet4` there, which has the same address encodings and buried
heights, and a new `testnet5` field selects the genesis block and the
message start. The genesis values are the ones in bitcoin/bips#2356 and
Bitcoin Core #35861; BIP 95 on master still shows placeholders.

BIP 54, which BIP 95 turns on from block 1, lands in the following
commits.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
@murchandamus

Copy link
Copy Markdown
Member

The version should probably bumped to 0.4.0 with this update.

Given that Testnet 5 is now deployed, I would suggest bumping to 1.0.0 instead and advancing the BIP to Deployed.

@ajtowns
ajtowns force-pushed the 202611-bip95-genesis branch 2 times, most recently from b46f935 to 9366823 Compare November 16, 2026 23:52
@ajtowns
ajtowns force-pushed the 202611-bip95-genesis branch from 9366823 to a53289f Compare November 16, 2026 23:54
@ajtowns

ajtowns commented Nov 16, 2026

Copy link
Copy Markdown
Contributor Author

Okay, bumped to 1.0.0; added the genesis params rationale in the rationale section and reworded it a bit; also added references to the launch post and bip320.

@fjahr

fjahr commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

ACK a53289f

@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.

ACK a53289f

@jonatack
jonatack merged commit e373a69 into bitcoin:master Nov 17, 2026
4 checks passed
@jonatack

Copy link
Copy Markdown
Member

Okay, bumped to 1.0.0; added the genesis params rationale in the rationale section and reworded it a bit; also added references to the launch post and bip320.

ACK, much improved over the diff I suggested, nice.

macgyver13 pushed a commit to macgyver13/bips that referenced this pull request Nov 25, 2026
Live for ~6 years.

Both Testnet 4 (BIP 94) and Testnet 5 (BIP 95, bitcoin#2356) are Deployed.
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.

5 participants