A Deep Dive Into Blockchain Selfish Mining

Qianlan Bai, Xinyan Zhou, Xing Wang, Yuedong Xu, Qingsheng Kong

TL;DR

While traditional wisdom suggests a miner needs 25% of total hash power to profit from "selfish mining," this paper proves that when two selfish miners compete, that threshold drops to just 21.48%. Furthermore, the authors reveal that selfish mining is a "long game"—it can take months or even years of wasted energy before the strategy becomes more profitable than honest mining.

What Problem Does This Paper Address?

In a standard Proof-of-Work (PoW) blockchain like Bitcoin, miners are expected to publish new blocks immediately. "Selfish mining" is a strategy where a miner keeps their discovered blocks private, building a secret chain to eventually "orphan" the honest network's blocks and claim a larger share of rewards.

Most existing research assumes a single selfish attacker against an honest majority. This paper addresses a more realistic and dangerous scenario: What happens when multiple selfish pools exist simultaneously? The authors explore how competition between bad actors changes the profitability threshold and, crucially, how long an attacker must wait for their strategy to actually pay off.

Methods

The researchers employed a two-pronged mathematical approach:

  1. Markov Chain Modeling: They built a novel finite state machine to characterize the transitions between public and private chains. They modeled a three-party system: Alice (Selfish), Bob (Selfish), and Henry (Honest). By analyzing states where private chains are 1, 2, 3, or 4 blocks ahead ($N=4$), they derived closed-form expressions for steady-state revenue.
  2. Transient State Analysis: Unlike many papers that look only at long-term averages, this work analyzes the "difficulty adjustment" period. They modeled how the system's total hashrate and difficulty evolve over time to determine the "profitable delay."
  3. Simulation: To validate their math, they built a Bitcoin system simulator, running a million trials to compare theoretical results with empirical data.

Datasets

The paper does not use external datasets. Instead, it utilizes:

  • Custom Bitcoin Simulator: A Monte Carlo simulation environment that mimics block generation as an exponential distribution.
  • Theoretical Parameters: Hashrate distributions ($\alpha_1, \alpha_2, \alpha_h$) and tie-breaking probabilities ($\gamma, \theta$) based on established literature (e.g., Eyal and Sirer).

Key Insights and Ideas

  • The "Double-Edged Sword" of Competition: You might think two selfish miners would cancel each other out. Instead, their combined "waste" of honest blocks lowers the barrier to entry for both. If both miners are symmetric, the threshold to be profitable drops from 25% to 21.48%.
  • The Chain Reaction: The paper identifies a "chain reaction release" where one selfish miner’s decision to publish blocks forces the other to either forfeit their private chain or release their own blocks to stay in the race. This creates a complex, oscillating "winning branch."
  • Selfish Mining is a "Long Game": This is perhaps the most practical insight. Selfish mining actually wastes money in the short term because the miner is discarding valid work. It only becomes profitable after the network difficulty adjusts downward to compensate for the "missing" blocks.
  • The 51-Round Wait: If two selfish miners each hold 22% of the hashrate, they won't see a profit for 51 difficulty adjustment rounds. In Bitcoin terms, that is roughly 714 days of operating at a loss before the strategy pays off.

Key Results

  • Lowered Threshold: The minimum hashrate for profitable selfish mining is confirmed at 21.48% for two symmetric attackers.
  • Convergence: The authors show that as the maximum allowed private chain length ($N$) increases, the profitable threshold converges quickly. By $N=4$, the model is nearly identical to an infinite-length model.
  • Profitable Delay:
    • At 22% hashrate: ~714 days to profit.
  • At 33% hashrate: ~70 days to profit.
  • System Fragility: The presence of multiple attackers makes the blockchain significantly more fragile than previously thought, as the "honest majority" requirement is effectively higher than 75%.

Limitations and Future Work

  • Information Asymmetry: The model assumes selfish miners are unaware of each other's roles. In reality, sophisticated pools might use network analysis to identify other selfish actors and collude or adjust strategies.
  • Computational Complexity: The closed-form mathematical results are provided up to $N=4$. While they show convergence, a generalized model for $N$ attackers with $M$ private blocks remains a challenge.
  • Detection: The paper notes that long private chains are easier to detect. Future work could explore "stealthy" selfish mining that balances profitability against the risk of being identified and blacklisted by the community.

Summary updated

BibTeX
@inproceedings{bai2019deep,
  author = {Qianlan Bai and Xinyan Zhou and Xing Wang and Yuedong Xu and Xin Wang and Qingsheng Kong},
  title = {{A Deep Dive Into Blockchain Selfish Mining}},
  booktitle = {ICC},
  year = {2019},
  url = {https://openreview.net/forum?id=oiJilV9ouw},
}
Figure