Selfish mining is a strategy in proof of work blockchains in which a miner or mining pool withholds newly found blocks and releases them selectively, so that honest miners waste effort on a chain that will be abandoned. Among consensus mechanisms, it shows that Nakamoto consensus is not perfectly incentive compatible: a participant with well under half of the hash rate can, under certain conditions, earn more than its proportional share of block rewards.
The attack was formalized in 2013 by Ittay Eyal and Emin Gün Sirer in the paper titled “Majority Is Not Enough”. It does not let the attacker steal coins or double-spend directly, but it distorts reward distribution, encourages pool centralization and weakens the security assumptions of the network.
How the selfish mining strategy works
Selfish mining works by keeping a private chain that is ahead of the public chain and revealing blocks only when doing so invalidates honest work. The attacker mines on its own secret tip, while honest miners continue on the public tip they know about.
The core idea is that wasted honest hash power raises the attacker’s relative share of the blocks that end up on the canonical chain. The attacker loses some of its own blocks too, but honest miners lose more, so the attacker’s fraction of accepted blocks grows. The decision rules depend on the lead of the private chain over the public one.
| Situation | Attacker action | Effect |
|---|---|---|
| Attacker finds a block, no lead | Keep it private | Gains a lead of one block |
| Honest network finds a block, lead of one | Publish the private block | Creates a race between two tips |
| Attacker extends lead to two | Keep mining privately | Prepares to override honest work |
| Honest block found, lead of two | Publish the whole private chain | Honest block becomes orphaned |
| Honest network takes the lead | Abandon private chain | Attacker returns to public tip |
Profitability threshold and key parameters
Selfish mining is profitable only when the attacker’s share of hash rate, usually written as alpha, exceeds a threshold that depends on the network parameter gamma. Gamma is the fraction of honest miners who build on the attacker’s block when two competing blocks of equal height appear.
In the original model, the threshold equals (1 − gamma) / (3 − 2 gamma). With no propagation advantage, the attacker needs about one third of the hash rate; with an even split of honest miners, the requirement drops to one quarter; and an attacker with perfect network reach could, in theory, profit with almost any share.
| Gamma value | Meaning | Minimum hash rate share |
|---|---|---|
| 0 | No honest miner follows the attacker | About 33% |
| 0.5 | Honest miners split evenly | About 25% |
| 1 | All honest miners follow the attacker | Close to 0% |
Later research using Markov decision processes found optimal selfish mining policies that lower the threshold slightly, to roughly 23% when gamma is zero. Stubborn mining variants accept more risk in races and can be more profitable in some parameter ranges.
The role of difficulty adjustment
Selfish mining increases the attacker’s revenue only after the difficulty adjustment takes effect. Because orphaned blocks slow the visible block rate, the network initially earns fewer rewards per unit of time, and the attacker’s absolute income falls during the first adjustment period.
Once difficulty drops to restore the target block time, the attacker collects a larger share of rewards at the normal rate. On Bitcoin, the adjustment happens every 2,016 blocks, roughly two weeks, so an attacker must sustain losses for that period before gaining. This delay is one reason the attack is considered costly to start and easy to notice.
Selfish mining compared with related attacks
Selfish mining belongs to a family of mining incentive attacks, but it differs from attacks that aim to rewrite history or sabotage a pool. The comparison below shows the distinguishing features.
| Attack | Required hash rate | Main goal | Direct theft possible |
|---|---|---|---|
| Selfish mining | About 25-33% or less | Disproportionate rewards | No |
| 51% attack | More than 50% | Reorganize chain, double-spend | Yes, through double-spending |
| Block withholding in pools | Any share inside a pool | Sabotage a rival pool | No |
| Fee sniping | Variable | Capture high fees of recent blocks | No |
A successful selfish miner can still become a stepping stone toward a 51% attack: rational miners may join the attacker’s pool because it pays better, and the pool’s hash rate share can then grow past the majority threshold.
Detection, countermeasures and real-world evidence
Selfish mining can be detected indirectly through elevated orphan or uncle rates, unusual timestamp patterns and bursts of consecutive blocks from the same pool. These signals are noisy, because natural network latency also produces forks.
- Uniform tie-breaking: honest miners choose randomly between competing tips, which fixes gamma near 0.5 and the threshold near 25%.
- Fast block propagation networks reduce the attacker’s ability to win races.
- Timestamp or freshness rules that penalize blocks released late have been proposed, though none is widely deployed.
- Pool transparency and monitoring discourage large pools from experimenting with withholding.
There is no confirmed large-scale case of sustained selfish mining on Bitcoin. Studies of smaller proof of work networks have reported suspicious patterns, but attribution remains disputed. The main value of the concept is that it sets a realistic security bound below the commonly cited 50%.
In plain words
Selfish mining is a trick in which a miner hides the blocks it finds instead of announcing them right away. Other miners keep working on an older version of the chain without knowing it is already outdated.
When the hidden blocks are finally revealed, the work of the others is thrown away. It resembles a runner who secretly takes a shortcut and appears at the finish only when a rival is about to win. The cheater does not steal money, but collects a larger share of rewards than its effort deserves.
A real-world example
Consider a small proof of work coin where one mining pool controls about 30% of the hash rate and has well-connected nodes that reach most other miners quickly. Researchers monitoring the network notice that the orphan rate rises from about 1% to about 6% over a month, and that the pool often publishes two or three blocks in rapid succession right after a competitor’s block.
Because the pool’s network reach gives it a high gamma, its share of accepted blocks climbs to around 36% after difficulty adjusts. Other miners lose income, and some join the pool to earn more. The developers respond with uniform random tie-breaking and better block relay, after which the orphan rate falls back near its normal level. The attack becomes unprofitable once races are no longer biased in the pool’s favor.