Merge pull request #2356 from ajtowns/202611-bip95-genesis

This commit is contained in:
Jon Atack authored and GitHub committed 2026-11-17 04:19:27 -06:00
commit e373a69b96
2 files changed
+39 -32

No files matched your search

+2 -2
View File
@@ -547,13 +547,13 @@ users (see also: [https://en.bitcoin.it/wiki/Economic_majority economic majority
| Fabian Jahr | Fabian Jahr
| Specification | Specification
| Deployed | Deployed
|- |- style="background-color: #cfffcf"
| [[bip-0095.md|95]] | [[bip-0095.md|95]]
| Applications | Applications
| Testnet 5 | Testnet 5
| Pol Espinasa, Fabian Jahr | Pol Espinasa, Fabian Jahr
| Specification | Specification
| Draft | Deployed
|- |-
| [[bip-0098.mediawiki|98]] | [[bip-0098.mediawiki|98]]
| Consensus (soft fork) | Consensus (soft fork)
+37 -30
View File
@@ -4,12 +4,12 @@
Title: Testnet 5 Title: Testnet 5
Authors: Pol Espinasa <polespinasa@protonmail.com> Authors: Pol Espinasa <polespinasa@protonmail.com>
Fabian Jahr <fjahr@protonmail.com> Fabian Jahr <fjahr@protonmail.com>
Status: Draft Status: Deployed
Type: Specification Type: Specification
Assigned: 2026-06-22 Assigned: 2026-06-22
License: CC0-1.0 License: CC0-1.0
Discussion: 2026-06-02: https://groups.google.com/g/bitcoindev/c/kGUMTxOvdJA Discussion: 2026-06-02: https://groups.google.com/g/bitcoindev/c/kGUMTxOvdJA
Version: 0.3.0 Version: 1.0.0
Requires: 54 Requires: 54
Replaces: 94 Replaces: 94
``` ```
@@ -76,35 +76,14 @@ from block 1, as specified above.
### Genesis Block ### Genesis Block
TODO: Mine the block. The values below are placeholders. They are * Message: "2026-11-14 975744 0000000000000000000123e2681e2f82acdcb9430a15eec24cc85b400691d479"
the genesis block's header fields together with the `Message` and * scriptPubKey: <code>6a0895ebf76a02000000</code>
`scriptPubKey` of its coinbase transaction. Notes for the miner: * Time stamp: 1794632593
* Nonce: <code>0x653d9131</code>
* nBits: <code>0x1a0fffff</code>
* Version: <code>0x2230c000</code>
- `scriptPubKey` is the script public key in the coinbase transaction's The resulting Genesis block hash is <code>00000000000008c1637e7d3252dc1c333d4546fd6fff6a474b200d674a91d497</code>, and the block hex is <code>00c0302200000000000000000000000000000000000000000000000000000000000000008de2a6b556ecb56779c34481ede767f09b2ae214f37ab1ad34085b5cb699588c91ebf76affff0f1a31913d650101000000010000000000000000000000000000000000000000000000000000000000000000ffffffff5b04ffff001d01044c52323032362d31312d3134203937353734342030303030303030303030303030303030303030313233653236383165326638326163646362393433306131356565633234636338356234303036393164343739ffffffff0100f2052a010000000a6a0895ebf76a0200000000000000</code>.
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.
Placeholders:
> (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>.
### Message Start ### Message Start
@@ -136,6 +115,28 @@ between dampening the quick mining of large numbers of blocks shortly after laun
difficulty has adjusted to the available hash power, and keeping a low barrier so that a handful difficulty has adjusted to the available hash power, and keeping a low barrier so that a handful
of at-home miners or a single ASIC can keep the network usable. of at-home miners or a single ASIC can keep the network usable.
### Choice of genesis parameters
The genesis block parameters were chosen according to the following
structure:
* The `Message` in the coinbase was the date and hash of the mainnet
block beginning the next retarget period. That height was chosen and
[announced][t5-launch] roughly a week prior to when it was mined. This
served as an anti-pre-mine commitment, similar to the newspaper
headline in the mainnet genesis block.
* The `scriptPubKey` used for the output is an `OP_RETURN` with an 8 byte
push, used as extranonce data for mining the block. The `OP_RETURN`
type was chosen as the output is unspendable anyway, and to avoid
bike-shedding over its content.
* The block time stamp was chosen by the mining software, ending
up slightly later than the timestamp in the mainnet block.
* The block version used [BIP 320][BIP320] version rolling for additional
nonce space making it easier to meet the minimum difficulty.
## Backward Compatibility ## Backward Compatibility
Testnet 5's consensus rules are not compatible with those of Testnet 3 and Testnet 4. The Testnet 5's consensus rules are not compatible with those of Testnet 3 and Testnet 4. The
@@ -159,18 +160,22 @@ Pull request at [Bitcoin Core #35861](https://github.com/bitcoin/bitcoin/pull/35
- [BIP 30][BIP30]: Duplicate transactions - [BIP 30][BIP30]: Duplicate transactions
- [BIP 54][BIP54]: Consensus Cleanup - [BIP 54][BIP54]: Consensus Cleanup
- [BIP 94][BIP94]: Testnet 4 - [BIP 94][BIP94]: Testnet 4
- [BIP 320][BIP320]: nVersion bits for general purpose use
- [The block storms of Bitcoin's Testnet][block-storms] - [The block storms of Bitcoin's Testnet][block-storms]
- [Testnet 4 difficulty exception analysis and discussion (Bitcointalk)][bitcointalk-thread] - [Testnet 4 difficulty exception analysis and discussion (Bitcointalk)][bitcointalk-thread]
- [BIP 54 enforcement on signet via Bitcoin Inquisition][signet-bip54] - [BIP 54 enforcement on signet via Bitcoin Inquisition][signet-bip54]
- [Discussion on changing the Testnet 4 rules (Bitcoin Core PR #31117)][t4-discussion] - [Discussion on changing the Testnet 4 rules (Bitcoin Core PR #31117)][t4-discussion]
- [Testnet 5 launch (bitcoindev list)][t5-launch]
[block-storms]: https://blog.lopp.net/the-block-storms-of-bitcoins-testnet/ [block-storms]: https://blog.lopp.net/the-block-storms-of-bitcoins-testnet/
[bitcointalk-thread]: https://bitcointalk.org/index.php?topic=5569103.0 [bitcointalk-thread]: https://bitcointalk.org/index.php?topic=5569103.0
[signet-bip54]: https://delvingbitcoin.org/t/bitcoin-inqusition-29-2/2236 [signet-bip54]: https://delvingbitcoin.org/t/bitcoin-inqusition-29-2/2236
[t4-discussion]: https://github.com/bitcoin/bitcoin/pull/31117 [t4-discussion]: https://github.com/bitcoin/bitcoin/pull/31117
[t5-launch]: https://gnusha.org/pi/bitcoindev/avINnoG-1r242rAw@erisian.com.au/T/
[BIP30]: bip-0030.mediawiki [BIP30]: bip-0030.mediawiki
[BIP54]: bip-0054.md [BIP54]: bip-0054.md
[BIP94]: bip-0094.mediawiki [BIP94]: bip-0094.mediawiki
[BIP320]: bip-0320.mediawiki
## Copyright ## Copyright
@@ -178,6 +183,8 @@ This document is licensed under the Creative Commons CC0 1.0 Universal license.
## Changelog ## Changelog
* __1.0.0__ (2026-11-17):
* Include testnet5 genesis block parameters.
* __0.3.0__ (2026-11-05): * __0.3.0__ (2026-11-05):
* Move commitment back to scriptSig, and use `OP_RETURN` for output. * Move commitment back to scriptSig, and use `OP_RETURN` for output.
* __0.2.0__ (2026-11-05): * __0.2.0__ (2026-11-05):