Finney Attack
A miner puts a conflicting transaction in a block it has already solved, then releases it after being paid.
Basically
A miner secretly prepares a valid Bitcoin block that sends coins back to themselves. After buying goods with the same coins, they release the hidden block to cancel the seller's payment.
Key Takeaways
- A Finney attack is a double-spend technique where a miner pre-mines a block containing a self-paying transaction, spends the same coins at a merchant who accepts zero-confirmation transactions, then broadcasts the withheld block to invalidate the merchant's payment.
- The attacker needs mining capability, which makes a Finney attack far more difficult than a simple race attack. No confirmed Finney attack has ever been documented in the wild.
- Waiting for even a single block confirmation completely defeats this attack. This is one reason Layer 2 solutions like Lightning and Spark exist for instant settlement without zero-conf risk.
What Is a Finney Attack?
A Finney attack is a type of double-spend attack against Bitcoin merchants who accept unconfirmed transactions. Named after Hal Finney, one of Bitcoin's earliest contributors and the recipient of the first-ever Bitcoin transaction from Satoshi Nakamoto, the attack exploits the gap between a transaction appearing in the mempool and receiving its first block confirmation.
Hal Finney described this attack vector on the Bitcointalk forum in 2011, not to advocate for it, but to show the community why accepting zero-confirmation payments carries inherent risk. The attack demonstrates a fundamental property of proof-of-work blockchains: a transaction is not truly settled until it is included in a confirmed block.
The attacker must be a miner or have access to mining infrastructure, unlike with simpler double-spend methods. This requirement makes the attack significantly harder to execute, but also more reliable against merchants who rely solely on mempool visibility as proof of payment.
How It Works
A Finney attack follows a precise sequence based on the delay between finding a block and sharing it with the network. The attacker uses that delay to spend coins that the hidden block already sends back to them.
The attacker keeps both the goods and the cryptocurrency. The merchant is left with an invalidated transaction and no payment.
Why Mining Is Required
The Finney attack depends on the ability to produce a valid block and control when it is broadcast, which only miners can do. A non-mining user cannot create blocks, so they cannot withhold one for strategic release. This distinguishes the Finney attack from a race attack, where any user can attempt to broadcast two conflicting transactions simultaneously.
The attacker does not need majority hashrate. Even a miner with a small fraction of total network hashrate can attempt this attack whenever they happen to find a block. Lower hashrate means longer waits between block discoveries and fewer opportunities to execute.
The Timing Constraint
The critical window for a Finney attack runs from when the attacker finds their block until the next honest miner finds a competing block. If another block is found and propagated first, the attacker's withheld block becomes stale, or orphaned, and the attack fails. With Bitcoin's average block time of roughly 10 minutes, this window is probabilistic, so the attacker must complete the merchant transaction before the next block arrives.
Probability of Success
Several factors determine whether a Finney attack succeeds. Mining access, block timing and the merchant's acceptance of unconfirmed payments all shape the attempt.
The economic calculus strongly discourages Finney attacks in practice. The cost of a failed attempt, a lost block reward worth hundreds of thousands of dollars, almost always exceeds the value of goods that can be obtained through the attack. This makes the attack irrational for any miner acting in economic self-interest.
Comparison with Other Double-Spend Attacks
The Finney attack is one of several double-spend strategies. Each strategy has different requirements and capabilities.
A related variant called the Vector76 attack combines elements of both the Finney and race attacks. The attacker pre-mines a block, like in a Finney attack, while also using network propagation tricks to achieve a double-spend against merchants who wait for one confirmation. This hybrid approach is even more complex to execute and carries additional risk of chain reorganisation failure.
Countermeasures and Defences
Merchants and payment processors can protect against Finney attacks through several strategies. These include waiting for confirmations, monitoring the mempool, rejecting RBF-signalling transactions, assessing risk by value and using Layer 2.
Wait for Confirmations
The most effective defence is the simplest: require at least one block confirmation before considering a payment final. A single confirmation means the transaction has been included in a block accepted by the network, making a Finney attack impossible. For high-value transactions, merchants commonly require 3 to 6 confirmations; the research on zero-confirmation Bitcoin transactions gives a deeper analysis of confirmation security thresholds at various attacker hashrate levels.
Mempool Monitoring
Sophisticated payment processors monitor the mempool across multiple nodes in real time, watching for conflicting transactions that might indicate a double-spend attempt. This cannot fully prevent a Finney attack because the conflicting transaction is hidden inside an unmined block, but it can detect race attacks and other suspicious patterns.
Reject RBF-Signalling Transactions
Transactions signalling Replace-by-Fee, or RBF, explicitly allow replacement with a higher-fee version. Merchants accepting zero-conf should reject RBF-flagged transactions because they are trivially replaceable. With full RBF now deployed in Bitcoin Core, this consideration has made merchants generally more cautious about zero-confirmation acceptance.
Value-Based Risk Assessment
The economics of a Finney attack make it irrational for low-value transactions. Risking a block reward worth over $200,000 to steal a $20 coffee makes no sense. Merchants can apply risk tiers by accepting zero-conf for small purchases, where the attack cost vastly exceeds the gain, and requiring confirmations for higher-value sales.
Use Layer 2 for Instant Settlement
Layer 2 solutions provide cryptographic settlement guarantees for merchants who need instant finality without waiting for block confirmations. The Lightning Network settles payments in seconds with cryptographic proof, eliminating zero-conf risk entirely, while Spark enables instant settlement for both Bitcoin and stablecoins without the channel management overhead of Lightning. The research on the state of the Lightning Network in 2026 provides an overview of these solutions.
Has a Finney Attack Ever Succeeded?
No confirmed Finney attack has ever been documented on Bitcoin or any other major cryptocurrency. Multiple sources, including academic surveys of double-spend attacks, confirm that the attack remains purely theoretical. The combination of mining requirements, precise timing, high opportunity cost and the declining prevalence of zero-conf acceptance makes it impractical.
The formal analysis in "Two Bitcoins at the Price of One? Double-Spending Attacks on Fast Payments in Bitcoin" by Karame et al., 2012, provided the most rigorous study of both race and Finney attacks. The study confirmed the theoretical viability but practical difficulty of the approach.
Why It Matters Today
The Finney attack poses minimal practical risk in 2026. The attack remains a conceptual foundation for Bitcoin's security model.
Bitcoin's hashrate has grown to over 800 EH/s, making individual mining increasingly difficult, while professional payment processors use sophisticated risk analysis for the small number of use cases that still accept zero-conf. Layer 2 solutions have become the standard for genuine instant payments: the Lightning Network and protocols like Spark provide cryptographic settlement guarantees that eliminate double-spend risk entirely, without requiring any on-chain confirmations. The Bitcoin transaction lifecycle explained offers a deeper comparison of Bitcoin's transaction lifecycle and confirmation mechanics.
The glossary entry is for informational purposes only and does not constitute financial or investment advice. Always do your own research before using any protocol or technology.