Value overflow: the 2010 bug that created 184 billion bitcoin
What it is
Being researched: no published claim explains it yet. It is on the brain's research list, and a claim appears here only once its sources check out.
What defends against it
Bitcoin Core's MAX_MONEY constant of 21,000,000 BTC is a sanity check on amounts, not the total money supply: its source comment says the supply in Bitcoin currently happens to be less than 21,000,000 BTC for various reasons.1: open 2 sources
FactHolderEstablishedHigh confidence
T1Bitcoin Core src/consensus/amount.h, MAX_MONEYSource code, says this directly
Note that this constant is *not* the total money supply, which in Bitcoin
MAX_MONEY comment, read 2026-11-20
Still in src/consensus/amount.h at the head of bitcoin/bitcoin (0e8f70a863), read 26 Nov 2026.
T1Bitcoin Core src/consensus/amount.h, MAX_MONEYSource code, says this directly
inline constexpr CAmount MAX_MONEY{21'000'000 * COIN};
MAX_MONEY definition, read 2026-11-20
Still in src/consensus/amount.h at the head of bitcoin/bitcoin (0e8f70a863), read 26 Nov 2026.
bitcoin/bitcoin at f498a5a671 contains this text in src/consensus/amount.h, and still does on the default branch.
Run it yourself
git clone https://github.com/bitcoin/bitcoin && git -C bitcoin show f498a5a6718d9157b6afb85412c3462439117702:src/consensus/amount.h | grep -nF 'inline constexpr CAmount MAX_MONEY{21'"'"'000'"'"'000 * COIN};'Checked at block 976,783, 20 Nov 2026, 20:55 UTC: recheck, quotes 2/2, code 1/1History, hash and citation
What the lab tests
2 testsBitcoin 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 |
|---|---|---|---|
mempool_ | Passed | Passed | Passed |
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-2010-5139MatchesIn 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
- block 74,638en.bitcoin.it15 Aug 2010
- NVD: CVE-2010-5139nvd.nist.gov2010-08CVE-2010-5139 in NVD since 6 Aug 2012