Duplicate transactions that overwrite coins nobody has spent
What it is
BIP 30 forbids a Bitcoin block from containing a transaction whose txid matches an earlier transaction in the same chain that still has unspent outputs, closing a flaw in which a duplicate transaction could overwrite the earlier one's unspent outputs.1: open 2 sources
FactBuilderEstablishedHigh confidence
Blocks are not allowed to contain a transaction whose identifier matches that of an earlier, not-fully-spent transaction in the same chain.
Specification, read 2026-11-20
Still in bip-0030.mediawiki at the head of bitcoin/bips (9f3d3bc6a6), read 26 Nov 2026.
T1Bitcoin Core src/validation.cpp, ConnectBlockSource code, says this directly
Do not allow blocks that contain transactions which 'overwrite' older transactions,
Chainstate::ConnectBlock, BIP30 check, read 2026-11-20
Still in src/validation.cpp at the head of bitcoin/bitcoin (0e8f70a863), read 26 Nov 2026.
BIP 30's Status is "Deployed" on the default branch.
Run it yourself
curl -s https://raw.githubusercontent.com/bitcoin/bips/master/bip-0030.mediawiki | grep -m1 -E '^ *Statuss?:'bitcoin/bitcoin at f498a5a671 contains this text in src/validation.cpp, and still does on the default branch.
Run it yourself
git clone https://github.com/bitcoin/bitcoin && git -C bitcoin show f498a5a6718d9157b6afb85412c3462439117702:src/validation.cpp | grep -nF 'bad-txns-BIP30'Checked at block 976,783, 20 Nov 2026, 20:55 UTC: recheck, quotes 2/2, code 2/2History, hash and citation
The 50 BTC coinbase outputs of blocks 91,722 and 91,812 can never be spent, because identical coinbases mined later, in blocks 91,842 and 91,880, overwrote them. Bitcoin Core marks them in IsBIP30Unspendable, and gettxoutsetinfo with coinstatsindex reports them in its bip30 total.2: open 3 sources
FactBuilderEstablishedHigh confidence
T1Bitcoin Core src/validation.cpp, IsBIP30UnspendableSource code, says this directly
return (block_height==91722 && block_hash == uint256{
IsBIP30Unspendable, read 2026-11-20
Still in src/validation.cpp at the head of bitcoin/bitcoin (0e8f70a863), read 26 Nov 2026.
T1Bitcoin Core src/rpc/blockchain.cpp, gettxoutsetinfoSource code, says this directly
Transactions overridden by duplicates (no longer possible with BIP30)
gettxoutsetinfo, RPCResult unspendables.bip30, read 2026-11-20
Still in src/rpc/blockchain.cpp at the head of bitcoin/bitcoin (0e8f70a863), read 26 Nov 2026.
T1Coinbase subsidy of blocks 91,722 and 91,812The chain, says this directly
Blocks 91,722 and 91,812 block hashes and coinbase outputs, read 2026-11-20
Block 91,722 has hash 00000000000271a2...
Run it yourself
bitcoin-cli getblockhash 91722Block 91,812 has hash 00000000000af0ae...
Run it yourself
bitcoin-cli getblockhash 91812Block 91,722 created 5,000,000,000 sats of new coins.
Run it yourself
bitcoin-cli getblockstats 91722 '["subsidy"]'Block 91,812 created 5,000,000,000 sats of new coins.
Run it yourself
bitcoin-cli getblockstats 91812 '["subsidy"]'bitcoin/bitcoin at f498a5a671 contains this text in src/validation.cpp, and still does on the default branch.
Run it yourself
git clone https://github.com/bitcoin/bitcoin && git -C bitcoin show f498a5a6718d9157b6afb85412c3462439117702:src/validation.cpp | grep -nF 'return (block_height==91722 && block_hash == uint256{'Checked at block 976,783, 20 Nov 2026, 20:55 UTC: recheck, quotes 3/3, code 1/1, chain 4/4 (esplora pair agreed)History, hash and citation
What defends against it
BIP 34 requires each Bitcoin block to put its height as the first item of its coinbase transaction's scriptSig, to enforce block and transaction uniqueness; Bitcoin Core records the mainnet activation height of this rule as block 227,931.3: open 3 sources
FactBuilderEstablishedHigh confidence
Add height as the first item in the coinbase transaction's scriptSig, and increase block version to 2.
Specification, read 2026-11-20
Still in bip-0034.mediawiki at the head of bitcoin/bips (9f3d3bc6a6), read 26 Nov 2026.
Enforce block and transaction uniqueness, and assist unconnected block validation.
Motivation, read 2026-11-20
Still in bip-0034.mediawiki at the head of bitcoin/bips (9f3d3bc6a6), read 26 Nov 2026.
T1Bitcoin Core src/kernel/chainparams.cpp, CMainParamsSource code, says this directly
consensus.BIP34Height = 227931;
CMainParams, BIP34Height and BIP34Hash, read 2026-11-20
Still in src/kernel/chainparams.cpp at the head of bitcoin/bitcoin (0e8f70a863), read 26 Nov 2026.
BIP 34's Status is "Deployed" on the default branch.
Run it yourself
curl -s https://raw.githubusercontent.com/bitcoin/bips/master/bip-0034.mediawiki | grep -m1 -E '^ *Statuss?:'bitcoin/bitcoin at f498a5a671 contains this text in src/kernel/chainparams.cpp, and still does on the default branch.
Run it yourself
git clone https://github.com/bitcoin/bitcoin && git -C bitcoin show f498a5a6718d9157b6afb85412c3462439117702:src/kernel/chainparams.cpp | grep -nF 'consensus.BIP34Height = 227931;'Block 227,931 has hash 000000000000024b...
Run it yourself
bitcoin-cli getblockhash 227931Checked at block 976,842, 21 Nov 2026, 04:28 UTC: recheck, quotes 3/3, code 2/2, chain 1/1 (esplora pair agreed)History, hash and citation
BIP 34 does not rule out every duplicate coinbase: some early coinbases could be replayed in future blocks, so Bitcoin Core enforces BIP 30 checks again from block 1,983,702 on. BIP 54 (consensus cleanup), a proposed soft fork whose BIP status is Complete as of 20 November 2026, specifies that each coinbase's nLockTime equal the block height minus 1.4: open 3 sources
TraceResearcherEstablishedHigh confidence
T1Bitcoin Core src/validation.cpp, ConnectBlock BIP30 enforcementSource code, says this directly
TODO: Remove BIP30 checking from block height 1,983,702 on, once we have a
ConnectBlock, comment on BIP34_IMPLIES_BIP30_LIMIT, read 2026-11-20
Still in src/validation.cpp at the head of bitcoin/bitcoin (0e8f70a863), read 26 Nov 2026.
The coinbase transaction's `nLockTime` field must be set to the height of the block minus 1
Specification, coinbase transactions, read 2026-11-20
Still in bip-0054.md at the head of bitcoin/bips (9f3d3bc6a6), read 26 Nov 2026.
T2Bitcoin Optech topic, Consensus cleanup soft forkBitcoin Optech, says this directly
Some early coinbase transactions exhibit patterns that would allow them to be replayed in future blocks.
Topic summary, duplicate transactions, read 2026-11-20
bitcoin/bitcoin at f498a5a671 contains this text in src/validation.cpp, and still does on the default branch.
Run it yourself
git clone https://github.com/bitcoin/bitcoin && git -C bitcoin show f498a5a6718d9157b6afb85412c3462439117702:src/validation.cpp | grep -nF 'if (fEnforceBIP30 || pindex->nHeight >= BIP34_IMPLIES_BIP30_LIMIT) {'BIP 54's Status is "Complete" on the default branch.
Run it yourself
curl -s https://raw.githubusercontent.com/bitcoin/bips/master/bip-0054.mediawiki | grep -m1 -E '^ *Statuss?:'Checked at block 976,783, 20 Nov 2026, 20:55 UTC: recheck, quotes 3/3, code 2/2History, hash and citation
The consensus cleanup soft fork proposal, as summarized by Bitcoin Optech, includes a rule that would make future coinbase transactions unique without needing BIP 30 checks for those blocks, which would close the duplicate-transaction gap left by early coinbases.Speculative5: open 1 source
FactResearcherSpeculativeMedium confidence
T2Bitcoin Optech topic, Consensus cleanup soft forkBitcoin Optech, says this directly
enforces that future coinbase transactions are unique without needing to enforce BIP30 checks for those blocks.
Duplicate transaction vector, read 2026-11-20
Checked at block 976,842, 21 Nov 2026, 04:28 UTC: recheck, quotes 1/1History, hash and citation
What the lab tests
1 testBitcoin Core's own tests, run on a private test network against the newest release of each major version Bitcoin Core maintains, newest first. An older release runs the tests it has. See each release's run.
| Test | Bitcoin Core 32.123 Nov 2026 | Bitcoin Core 31.323 Nov 2026 | Bitcoin Core 30.523 Nov 2026 |
|---|---|---|---|
feature_ | Passed | Passed | Passed |
Checked against NVD
1 CVE idEach CVE id this threat's record names, looked up in NVD, the public vulnerability database: whether the id exists, what NVD says it affects, and since when. A disagreement is listed for the owner; the record is never changed to match.
CVE-2012-1909MatchesIn NVD since 6 Aug 2012. NVD lists as affected: bitcoin:bitcoin_core, bitcoin:wxbitcoin (Bitcoin Core). In this threat's public record. Checked 23 Nov 2026.
Public record
- BIP 30github.com2012-02
- BIP 34github.com2012-07
- NVD: CVE-2012-1909nvd.nist.gov2012CVE-2012-1909 in NVD since 6 Aug 2012