← Socratic Seminar #52 ← → or space to navigate

BIP95 · genesis mined 2026-11-14

Testnet5 is live

A fresh test network with no difficulty exception, a minimum difficulty of about one million, and the BIP54 consensus cleanup enforced from block 1.

BIP95 by Pol Espinasa and Fabian Jahr · genesis launch coordinated by aj · bip-0095.md · launch post

Background

Third time's the charm?

Testnet lineage: testnet3 from 2012 suffered block storms; testnet4 in 2024 kept the 20-minute exception but fixed block storms and timewarp; testnet5 in 2026 removes the exception, raises the minimum difficulty and enforces BIP54. Testnet3 ran 13+ years • 20-min min-difficulty rule • block storms: difficulty reset to 1 each period • height ~2.5M+ • coins traded, airdrop farming Testnet4 (BIP94) 2024 • block-storm fix • timewarp fix (600 s) • kept the 20-min rule for CPU miners • rule farmed by CPU miners → constant short reorgs Testnet5 (BIP95) 2026 • no difficulty exception • min difficulty ≈ 1M • BIP54 from block 1 • otherwise mainnet rules (as of May 2026)

Each network has its own genesis block, so coins can't be replayed between them. Addresses share the same tb1 format.

What broke Testnet4

The 20-minute rule became a CPU race

After a 20-minute gap any miner may produce a block at difficulty 1. Many CPU miners race to do so at the 20-minute mark, several such blocks compete for the tip, and the losers are reorged out. block N real difficulty 20 min, no block timestamp > prev + 20 min ⇒ nBits 0x1d00ffff allowed N+1 (CPU miner A) difficulty 1 N+1 (CPU miner B) difficulty 1 N+1 (CPU miner C) empty, to relay faster N+2 builds on B tip decided A, C reorged out every ~20 minutes

BIP95: the exception was "systematically and persistently exploited," leaving "constant re-orgs of small numbers of blocks." A bitcointalk proposal estimated about 5 in 6 Testnet4 blocks were CPU blocks.

Fix it or start over?

Patching Testnet4 was tried, then dropped

Soft-fork attempts

Core PRs #34420 (disable min-difficulty blocks after height 151,200) and #35081 (a soft fork against the exploit) were both closed in 2026.

Deployment is slow

BIP95: getting nodes to upgrade takes a long time, and the attackers farming the rule could disrupt any new deployment, BIP54 included.

A real fix is a hard fork

Anything beyond a band-aid needs hard-fork support in clients and the p2p layer. Not worth it for a test network.

  • Testnet4 kept the rule because "several reviewers insisted" CPU users should be able to mine non-standard transactions and keep the chain moving.
  • With the exception gone, the old objection to a higher difficulty floor no longer applies.

Minimum difficulty

A floor a million times higher

On a log scale, testnet4's minimum difficulty is 1 (nBits 0x1d00ffff) and testnet5's is about 1,048,561 (nBits 0x1a0fffff), roughly a million times higher. A 100 TH/s ASIC finds a block at that floor in about 45 seconds on average. 1 10 100 1k 10k 100k 1M minimum difficulty (log scale) Testnet4: 1 nBits 0x1d00ffff · any CPU, after 20 min Testnet5: ≈ 1,048,561 nBits 0x1a0fffff · no exceptions, ever

Why ~1M

BIP95: high enough to dampen a flood of blocks right after launch, low enough that "a handful of at-home miners or a single ASIC" can keep it usable.

What that means

At difficulty 1,048,561 a block takes ~4.5×1015 hashes: about 45 s on average for one 100 TH/s ASIC. A CPU won't get there.

BIP54 · consensus cleanup

Four new rules, live from block 1

Timewarp

First block of a period: timestamp ≥ previous block − 7200 s. Last block of a period: timestamp ≥ the period's first block (Murch–Zawy).

Sigop limit

A transaction's legacy signature operations, counted across all inputs, must not exceed 2,500. Caps worst-case block validation time.

No 64-byte txs

Transactions exactly 64 bytes without witness are invalid, closing the Merkle-tree ambiguity that can fool SPV proofs.

Unique coinbases

Coinbase nLockTime must be height − 1 and its nSequence not 0xffffffff, so duplicate coinbases are impossible without BIP30 checks.

Why a testnet for this: signet already enforces BIP54 through Bitcoin Inquisition, but signet doesn't let miners test that their own software follows the rules. Testnet5 does.

Genesis and joining

A pre-announced, publicly mined genesis

  • Anti-premine commitment: the coinbase text is the date and hash of mainnet block 975,744, the next retarget block, announced about a week ahead. The genesis timestamp is 05:03:13 UTC on 2026-11-14, 23 s after that block.
  • Built for pooled mining: an OP_RETURN output carries 8 bytes of extranonce, and BIP320 version rolling adds nonce space.
  • Fast start: 166 blocks in the first hour. Difficulty only adjusts every 2,016 blocks; the higher floor keeps early bursts in check.
  • Network: magic 0x46495645 spells FIVE; default p2p port 18353.

Node

Core support is still an open PR, #35861, so for now you build a branch.

Mine

P2Poolv2 runs its live share chain on testnet5, and aj runs a 0%-fee solo pool.

Gotcha

BIP34 height encoding: Core expects OP_1–OP_16 for heights 1–16, but much mining software pushes a byte.

Discussion

Questions for the room

  • With no CPU mining, where do developers get testnet5 coins? Faucets, pools, or will coins become tradable again, like testnet3's?
  • Signet, testnet4, testnet5: does anyone still need testnet4, and when should Core drop it?
  • BIP54 is live on a public PoW network first. What would you want to see from miners and pool software before a mainnet activation discussion?
  • Is a permissionless pool like P2Poolv2 the right way to bootstrap a test network's hashrate?