Passer au contenu

Bitcoin accepté au paiement  |  Expédié depuis Laval, QC, Canada  |  Soutien expert depuis 2016

Double Spend

Network & Protocol

Definition

A double spend is the act of successfully spending the same coins more than once. It is the central problem any digital cash system must solve, because unlike a physical coin, digital data can be copied. Bitcoin's entire architecture of blocks, mining, and proof-of-work exists to produce one shared transaction history that is computationally impractical to rewrite, so a coin can only be spent once.

How Bitcoin prevents it

Nodes reach consensus on a single ordering of transactions. Once a transaction is buried under confirmations, replacing it would require re-mining every block on top of it and out-pacing the honest network, which grows exponentially harder with depth. There is no central authority; the cost of rewriting history is what enforces the rule.

Attack windows

The realistic exposure is on transactions with zero or few confirmations. A race attack broadcasts a conflicting transaction to the network at almost the same time as the merchant's copy, hoping the conflicting one gets mined. A Finney attack uses a miner who withholds a pre-mined block containing a conflicting transaction, then releases it after receiving goods. Both target unconfirmed or single-confirmation payments.

Why zero-conf is not a promise

An unconfirmed transaction is just a broadcast intention — nothing about the protocol binds miners to include it. Replace-by-fee (RBF) makes this explicit: a sender can rebroadcast a conflicting version of their own unconfirmed transaction with a higher fee, and miners are economically inclined to take the better offer. This is a feature for fee management (unsticking a low-fee payment) and simultaneously the reason no merchant should hand over irreversible goods against zero confirmations. Different mempools across the network can hold different versions of the same spend at the same moment; only a block resolves the question. For small in-person amounts many merchants accept the risk pragmatically — the cost of attempting the fraud usually exceeds the coffee — but that is a business judgment, not a security guarantee.

The economics of confirmation depth

Each confirmation multiplies the cost of reversal, because an attacker must secretly re-mine the block containing the payment plus every block after it, faster than the honest network extends the chain. With a minority of hashrate the probability of catching up falls off exponentially with depth — the calculation Satoshi worked through in the whitepaper — which is where the customary "6 confirmations" convention originates. The right depth is really a function of amount at stake: one confirmation is ample for small sums, while an exchange crediting a very large deposit reasonably waits longer. What makes deep reversal practically absurd on Bitcoin is scale: renting or building a hashrate majority costs billions and burns real energy per hour, all wagered against the attacked transaction's value — and against the value of the attacker's own mining investment, since a successful deep rewrite would crater confidence in the asset the attacker just spent so much to earn.

What a miner sees

For a miner, double-spend protection is not an extra duty — it is the job itself. Every block template excludes transactions that conflict with the chain being extended, and the proof-of-work attached to each block is precisely the "cryptographic proof instead of trust" that makes the ordering final. The energy a miner spends is the physical anchor that makes copying digital money cost more than it yields. Receivers have their own tool in this system: a full node, which checks incoming payments against the chain directly instead of trusting a wallet server's word that a transaction is confirmed.

Waiting for additional confirmations is the standard defense, and a successful large-scale double spend would require the deep reorg that only a 51% attack can produce. For everyday payments this risk is negligible once a transaction is a few blocks deep.

In Simple Terms

A double spend is the act of successfully spending the same coins more than once. It is the central problem any digital cash system must…

Explore the Full Glossary

Browse all Bitcoin mining terms from A to Z. Whether you are a beginner or expert, deepen your understanding of the mining ecosystem.

Glossaire du minage

ASIC Miner Database

Compare 500+ miners with real-time profitability data, home mining scores, and detailed specs.

Comparer les mineurs