Selfish mining

On this page 7

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.

SituationAttacker actionEffect
Attacker finds a block, no leadKeep it privateGains a lead of one block
Honest network finds a block, lead of onePublish the private blockCreates a race between two tips
Attacker extends lead to twoKeep mining privatelyPrepares to override honest work
Honest block found, lead of twoPublish the whole private chainHonest block becomes orphaned
Honest network takes the leadAbandon private chainAttacker returns to public tip
Selfish mining decision rules by situation

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 valueMeaningMinimum hash rate share
0No honest miner follows the attackerAbout 33%
0.5Honest miners split evenlyAbout 25%
1All honest miners follow the attackerClose to 0%
Profitability threshold depending on gamma

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 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.

AttackRequired hash rateMain goalDirect theft possible
Selfish miningAbout 25-33% or lessDisproportionate rewardsNo
51% attackMore than 50%Reorganize chain, double-spendYes, through double-spending
Block withholding in poolsAny share inside a poolSabotage a rival poolNo
Fee snipingVariableCapture high fees of recent blocksNo
Selfish mining and neighboring attacks

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.