Bitcoin Mining Game Theory: Nash Equilibrium, Selfish Mining, and MEV Extraction
How game theory governs Bitcoin mining: honest mining as Nash equilibrium, selfish mining attacks, and the emerging threat of miner extractable value.
Bitcoin mining is a competitive game. Every ten minutes, miners around the world race to find a valid block, and the winner collects the block reward plus transaction fees. The protocol assumes that rational miners will follow the rules: extend the longest chain, include the highest-fee transactions, and broadcast blocks immediately. But game theory asks a deeper question: is following the rules actually the best strategy?
The answer is nuanced. Under most conditions, honest mining is a Nash equilibrium: no individual miner can profit by deviating when everyone else plays honestly. But this equilibrium has boundaries. When a miner or pool controls enough hashrate, strategic deviations like selfish mining become profitable. And as Bitcoin's fee market matures with Ordinals, Runes, and increasingly complex transactions, a new class of strategic behavior has emerged: miner extractable value (MEV).
Mining as a Strategic Game
In game theory, a strategic game has three components: players, strategies, and payoffs. Bitcoin mining maps cleanly onto this framework.
- Players: individual miners or mining pools, each controlling some fraction α of total network hashrate
- Strategies: honest mining (always extend the longest chain and broadcast immediately), selfish mining (withhold blocks strategically), or various hybrid approaches
- Payoffs: revenue relative to hashrate share, measured as the fraction of blocks a miner wins over time compared to their fraction of total compute
A miner playing honestly with fraction α of the hashrate expects to win fraction α of all blocks in the long run. The question game theory answers is whether any deviation from honest play can increase that fraction.
Why Honest Mining Is a Nash Equilibrium
A Nash equilibrium is a set of strategies where no player can improve their payoff by unilaterally changing what they do, given what everyone else is doing. In Bitcoin, honest mining satisfies this condition under specific hashrate distributions.
Consider a network of small miners, none controlling more than a few percent of hashrate. If every miner follows the protocol, each earns revenue proportional to their hashrate contribution. Any single small miner who tries to withhold blocks or reorder transactions will simply lose the blocks they withhold when the rest of the network moves on. The honest strategy dominates because the deviating miner lacks enough hashrate to sustain a private chain.
Research by Sapirshtein, Sompolinsky, and Zohar formalized this in their 2015 paper on optimal selfish mining strategies. They proved that honest mining is a strict Nash equilibrium when no pool exceeds roughly one-third of total hashrate. Below that threshold, any unilateral deviation reduces the deviator's expected revenue.
The one-third boundary: Honest mining remains a Nash equilibrium only when no single entity controls more than approximately 33% of total hashrate. Above that threshold, strategic deviations become profitable, and the equilibrium breaks down.
Selfish Mining: Breaking the Equilibrium
In 2013, Ittay Eyal and Emin Gün Sirer published "Majority is not Enough: Bitcoin Mining is Vulnerable", demonstrating that Bitcoin's mining protocol is not incentive-compatible under all conditions. Their selfish mining attack works as follows:
- The attacker finds a valid block but does not broadcast it to the network
- The attacker continues mining on top of their secret block, building a private chain
- When the honest network finds a competing block, the attacker selectively reveals their withheld block(s) to trigger a fork
- If the attacker's private chain is longer, the network adopts it and the honest miner's block becomes an orphan, wasting their work
The key insight is that the attacker wastes honest miners' effort without spending extra resources. By causing honest blocks to be orphaned, the selfish miner increases their relative share of the chain.
The Profitability Threshold
Whether selfish mining is profitable depends on two parameters: the attacker's hashrate fraction α, and a connectivity parameter γ. Gamma represents the fraction of honest miners who will mine on the attacker's block during a fork race (when both chains are the same length). Higher γ means the attacker has better network connectivity and can propagate blocks faster.
Eyal and Sirer derived the profitability threshold as: α* = (1 − γ) / (3 − 2γ). This formula yields different thresholds depending on network conditions:
| Gamma (γ) | Interpretation | Threshold (α*) |
|---|---|---|
| 0 | No propagation advantage: honest miners never mine on the attacker's fork | 33.3% |
| 0.5 | Half of honest miners follow the attacker's block during races | 25.0% |
| 1.0 | Perfect connectivity: all honest miners mine on the attacker's block | 0% |
The γ = 1 case is theoretical: it would require the attacker to reach every node before any competing block. In practice, real-world γ values for large pools are estimated between 0.1 and 0.5, placing the realistic threshold somewhere between 25% and 30% of network hashrate.
Proposed Countermeasures
Eyal and Sirer proposed a protocol modification where, upon detecting two competing blocks of equal height, miners randomly choose which to extend rather than always extending the first seen. This would raise the minimum profitable threshold to 25% regardless of γ. Bitcoin Core has not adopted this change, though the existing "first-seen" propagation rule provides some natural protection by giving honestly broadcast blocks a head start.
Game Theory Payoff Matrix
The strategic interaction between an attacker and the rest of the network can be modeled as a simplified two-player game. Consider a miner with 30% hashrate deciding whether to mine honestly or selfishly, while the remaining 70% mines honestly:
| Attacker Strategy | Network Strategy | Attacker Revenue Share | Outcome |
|---|---|---|---|
| Honest | Honest | 30% (proportional) | Stable equilibrium |
| Selfish (γ = 0) | Honest | < 30% (unprofitable) | Attacker loses revenue |
| Selfish (γ = 0.5) | Honest | ~32% (marginally profitable) | Attacker gains slightly |
| Selfish | Selfish | Reduced for both | Mutual destruction: chain instability |
The matrix illustrates why honest mining is a Nash equilibrium at low hashrate concentrations: at γ = 0, the selfish strategy yields less than proportional revenue. But at γ = 0.5, the 30% miner can extract more than their fair share, breaking the equilibrium. The final row shows why multiple selfish miners cannot coexist: mutual deviation degrades the chain, reducing total revenue for everyone.
Block Withholding and Pool-Level Attacks
Selfish mining targets the network at large. A related family of attacks targets mining pools specifically, exploiting the separation between pool operators and individual miners.
Block Withholding (BWH)
In a block withholding attack, a miner joins a target pool, submits valid partial proofs of work (shares) to earn payouts, but discards any full blocks they find. The attacker collects share-based revenue while sabotaging the pool's block production. This reduces the pool's overall earnings while the attacker collects a free-rider reward.
Fork After Withholding (FAW)
Kwon et al. extended this attack in their 2017 CCS paper with the Fork After Withholding (FAW) strategy. Instead of always discarding found blocks, the attacker withholds them and releases them only when a competing block from another pool is propagating, intentionally creating a fork. The paper found that FAW rewards are always equal to or greater than BWH rewards, and approximately 56% higher in multi-pool settings.
The Miner's Dilemma
When two pools simultaneously execute BWH attacks against each other, both suffer reduced revenue: a situation analogous to the Prisoner's Dilemma. Each pool is individually incentivized to attack, but mutual attack makes both worse off. This dynamic is known as the miner's dilemma, and an efficient countermeasure remains an open problem in the literature.
MEV on Bitcoin: The New Frontier
Miner extractable value (sometimes called maximal extractable value) has been extensively studied in Ethereum, where complex smart contracts create opportunities for front-running, sandwich attacks, and arbitrage. Bitcoin was long considered immune to MEV because of its simpler scripting model. That assumption began breaking down with the emergence of Ordinals, BRC-20 tokens, and the Runes protocol.
How MEV Manifests on Bitcoin
Several Bitcoin-specific MEV vectors have emerged:
- First-mint races: for BRC-20 and Runes tokens, only the first confirmed mint transaction for a given ticker is considered valid, making transaction ordering directly valuable
- Out-of-band fee payments: users pay miners directly (outside the standard fee mechanism) to prioritize their transactions, bypassing the public mempool
- Transaction acceleration services: services like mempool.space's accelerator allow users to pay pools directly for priority inclusion
- Inscription sniping: miners can observe pending inscription transactions and front-run them with their own inscriptions at the same sat position
The introduction of full replace-by-fee (RBF) as default mempool policy in Bitcoin Core v28 (released late 2024) further formalized the ability for transactions to be replaced by higher-fee alternatives, making fee-based competition a first-class feature of the protocol.
Industry Response
In June 2024, Bitcoin startup Rebar Labs raised $2.9 million to build MEV infrastructure for Bitcoin, including alternatives to the public mempool that would let miners optimize transaction ordering. This mirrors Ethereum's MEV-Boost ecosystem, where specialized block builders construct optimized blocks for validators. The emergence of dedicated MEV infrastructure on Bitcoin signals that transaction ordering is becoming a meaningful revenue source beyond simple fee-rate sorting.
Bitcoin's MEV is structural: Unlike Ethereum, where MEV arises from smart contract interactions, Bitcoin's MEV primarily comes from the first-price, sealed-bid nature of its block space auction. Miners have limited visibility into competing bids, creating information asymmetries that sophisticated participants can exploit.
Fee Sniping and Time-Bandit Attacks
As Bitcoin's block subsidy continues halving (currently 3.125 BTC after the April 2024 halving), transaction fees represent an increasing share of miner revenue. This shift introduces two related game-theoretic threats.
Fee Sniping
In a fee sniping attack, a miner re-mines the previous block to capture its transaction fees instead of extending the chain. This becomes rational when the previous block's fees significantly exceed the expected fees in the current block plus any subsidy advantage. Bitcoin Core has included anti-sniping protections since 2015 by setting nLockTime on transactions to the current block height, making them invalid in earlier blocks.
Time-Bandit Attacks
The time-bandit attack, formalized by Daian et al. in their Flash Boys 2.0 paper, extends fee sniping to deeper reorganizations. A sufficiently powerful miner could rewrite multiple blocks of history to capture high-value transactions from the past. While studied primarily in Ethereum's context, the attack is protocol-agnostic: any blockchain where transaction-ordering value exceeds the cost of a reorganization is theoretically vulnerable.
For Bitcoin, the practical risk remains low as long as the subsidy provides a substantial base reward. But as the subsidy approaches zero over future halvings, the security budget question becomes increasingly tied to whether fee revenue alone can sustain honest mining incentives without introducing time-bandit dynamics.
Mining Concentration and Strategic Risk
The game-theoretic thresholds discussed above are not abstract. As of mid-2026, Bitcoin mining pool concentration places several pools close to or above the selfish mining threshold:
- Foundry USA controls approximately 30% of network hashrate (~299 EH/s)
- AntPool holds roughly 18%, with ViaBTC and F2Pool each near 10-12%
- The top four pools collectively produce over 70% of all blocks
- Foundry and AntPool combined have exceeded 50% at certain measurement windows
These figures mean that Foundry, at approximately 30%, sits close to the selfish mining threshold (33% at γ = 0, lower with better connectivity). This does not mean Foundry is selfish mining: pool operators face reputational, legal, and economic consequences beyond the simple game-theoretic model. But it does mean the theoretical security margin is narrower than many assume.
Stratum V2: Restoring Miner Sovereignty
One structural response to mining centralization is Stratum V2, a next-generation mining protocol that shifts transaction selection from pool operators back to individual miners.
Under the original Stratum protocol, pool operators construct the block template (which transactions to include) and distribute it to miners. Miners perform only the hash computation. This means a small number of pool operators decide what goes into Bitcoin blocks, creating a centralization vector for censorship and MEV extraction.
Stratum V2's Job Declaration feature allows miners to build their own block templates and propose them to the pool. The Stratum Reference Implementation (SRI) reached v1.0.0 in March 2024, and adoption has accelerated since. In June 2026, the DEMAND pool (built natively on Stratum V2) mined block 955,318 using a template independently constructed by the miner GoMining through the Job Declaration protocol: a milestone in returning block construction power to individual hashrate contributors.
Why transaction selection matters for game theory: When pool operators control block templates, they can engage in MEV extraction, censorship, or strategic transaction ordering without miners' knowledge or consent. Stratum V2 makes these deviations visible and contestable by giving miners the ability to construct and verify their own templates.
Comparing Mining Attack Strategies
The following table summarizes the major strategic deviations from honest mining, their requirements, and their implications:
| Attack | Hashrate Required | Target | Detectable | Current Risk |
|---|---|---|---|---|
| Selfish mining | 25-33% | All honest miners | Statistically, over time | Moderate: top pools approach threshold |
| Block withholding (BWH) | Any | Specific pool | Difficult | Ongoing: no efficient countermeasure |
| Fork after withholding (FAW) | Any | Specific pool | Difficult | Ongoing: 56% more profitable than BWH |
| Fee sniping | >50% (practical) | Previous block miner | Yes (chain reorg) | Low: subsidy still dominant |
| Time-bandit reorg | >50% | Historical blocks | Yes (deep reorg) | Very low: cost exceeds MEV on Bitcoin |
| MEV extraction | Any (pool operator) | Transaction ordering | Varies | Growing: Ordinals and Runes increase value |
What This Means for Layer 2 Security
Bitcoin's game-theoretic stability is not just an academic question: it has direct implications for every system that settles on Bitcoin's base layer. Layer 2 protocols like Spark and the Lightning Network derive their security from the assumption that Bitcoin's base layer is resistant to strategic manipulation. If honest mining ceases to be a Nash equilibrium, the settlement guarantees these protocols depend on weaken.
Specifically, Layer 2 exit transactions (the mechanism that allows users to unilaterally withdraw funds to the base chain) require timely inclusion in Bitcoin blocks. A miner engaged in censorship or strategic reordering could delay or reorder these exits. This is why mining decentralization, Stratum V2 adoption, and the ongoing viability of honest mining incentives are foundational concerns for the entire Bitcoin scaling ecosystem.
For users of Spark-powered wallets like General Bread, the practical takeaway is that Bitcoin's incentive structure has held remarkably well for over fifteen years. Honest mining remains the dominant strategy, selfish mining remains unprofitable at current concentration levels, and the protocol's anti-sniping measures provide additional protection. But continued vigilance on pool concentration and the transition to a fee-dominated security budget remains essential.
Developers building on Bitcoin's settlement layer can explore Spark's architecture and SDK at docs.spark.money. For a deeper analysis of how mining concentration affects pool-level risks, see our research on Bitcoin mining centralization.
Conclusion
Bitcoin's mining game is not static. The Nash equilibrium that sustains honest mining depends on hashrate distribution, network propagation characteristics, and the economic weight of transaction fees relative to the block subsidy. Eyal and Sirer demonstrated in 2013 that this equilibrium has boundaries, and subsequent research has mapped those boundaries with increasing precision.
Three developments warrant close attention. First, pool concentration: with Foundry approaching 30% of hashrate, the margin to the selfish mining threshold is narrowing. Second, MEV: as Ordinals, Runes, and Bitcoin-native DeFi create more transaction-ordering value, miners face new incentives to deviate from simple fee-rate maximization. Third, the long-term security budget: each halving shifts more of miner revenue from predictable subsidies to volatile fee markets, potentially altering the equilibrium conditions.
The countermeasures are real too. Stratum V2 returns block construction power to individual miners. Anti-sniping protections in wallet software reduce the incentive for shallow reorgs. And the growing diversity of mining operations across geographies and energy sources works against the concentration that makes strategic attacks viable. Bitcoin's incentive structure has proven resilient, but its continued health depends on the community understanding and monitoring the game-theoretic forces that govern it.
This article is for educational purposes only. It does not constitute financial or investment advice. Bitcoin and Layer 2 protocols involve technical and financial risk. Always do your own research and understand the tradeoffs before using any protocol.

