Value Overflow Incident (184 Billion BTC)
An attacker exploits an integer overflow bug to generate 184 billion BTC, forcing the only major hard fork rollback in Bitcoin history.
On August 15, 2010, at Block Height 74,638, the Bitcoin network faced its most critical existential threat: the Value Overflow Incident. An anonymous attacker exploited a vulnerability (CVE-2010-5139) in the way the Bitcoin software handled large integers. The attacker broadcast a transaction that created 184,467,440,737.09551616 Bitcoins—roughly 8,700 times the maximum supply cap of 21 million. The transaction had two outputs, each sending roughly 92 billion BTC. Because the code used to sum the output values relied on 64-bit signed integers, the massive total 'wrapped around' to a small negative number (or zero) during verification, causing the software to incorrectly validate the transaction as legitimate.
Within hours, lead developer Jeff Garzik and Satoshi Nakamoto noticed the anomaly. The response was a frantic, coordinated effort to save the currency from hyperinflationary collapse. Satoshi quickly wrote a patch (version 0.3.10) that added a check to reject any transaction with outputs exceeding 21 million BTC. However, patching the code wasn't enough; the 'bad' block was already part of the chain. Satoshi and Gavin Andresen urged miners to switch to the new code immediately, effectively orchestrating a blockchain reorganization (reorg).
The 'good' chain (mined by the patched nodes) eventually overtook the 'bad' chain (containing the 184 billion BTC), becoming the longest chain. Block 74,638 was orphaned, and the counterfeit bitcoins were erased from history. This remains the only major hard fork used to reverse a transaction in Bitcoin's history. The successful resolution of the Value Overflow incident proved that the Bitcoin community could coordinate socially to defend the protocol's economic integrity, demonstrating that the system's resilience relied not just on code, but on the vigilance of its maintainers.
Key Sources:
• Bitcoin Wiki: Value Overflow Incident Report
• Bitcointalk: Original Alert Thread (Aug 2010)
• CoinDesk: The Day Someone Created 184 Billion Bitcoin