Selfish Mining

What Is Selfish Mining?

Selfish mining is a strategy for mining bitcoin or other cryptocurrencies in which groups of miners collude to increase their revenue and exert power over a blockchain. "Mining" is the process by which nodes in the blockchain's network validate and confirm transactions, with miners earning newly minted tokens in return for their computational effort. With selfish mining, the cartel obscures newly created blocks from the main chain, revealing them at a later point in time.

Key Takeaways

  • Selfish mining is a cryptocurrency mining strategy that involves forming a cartel of miners who act in unison to increase profits and network influence.
  • In this strategy, a group of miners join forces and “hide” their generated blocks from the main blockchain. 
  • Bitcoin was invented to decentralize the production and distribution of money. But selfish mining can result in greater centralization of mining operations and undermine a network's value proposition.
  • Several solutions have been proposed to discourage or pre-empt selfish mining

Understanding Selfish Mining

Selfish mining was first identified by Cornell researchers Emin Gün Sirer and Ittay Eyal in a 2013 paper. They proved that miners can earn more bitcoins by hiding newly-generated blocks from the main blockchain and creating a separate fork. 

Bitcoin mining relies on miners who solve cryptographically complex puzzles to generate coins. Income from the activity varies because the process is dependent on several factors, from the difficulty of puzzles being solved to electricity costs to the quality of Internet connections. The bitcoin protocol is configured to reward miners in proportion to their mining output. This ensures that even if miners organize themselves into large pools, the rewards are still dependent on coins produced by individual miners in the public blockchain.

But the above scenario assumes that miners will make their newly-generated blocks available on bitcoin’s public blockchain. In their 2013 paper, Sirer and Eyal showed that miners can increase their share of overall revenue by hiding new blocks and making them available to systems within their private network. This practice speeds up the discovery process and irons out infrastructure problems related to mining, such as network latency and electricity costs.

Selfish Mining Undermines Cryptos Decentralized Nature

Initially, the forked blockchain will be shorter than the public blockchain. However, selfish miners can strategically time their display of new blocks such that honest miners from the public blockchain abandon their own chain and join the private chain. Subsequently, the private chain mines new blocks within its pool and hides the newly-generated blocks.

In the meantime, the public blockchain continues mining new blocks. The process is repeated until the private blockchain is greater than the public one. Now the private chain reveals its blocks again, and miners from the public chain abandon their blocks to join the private chain because it is more lucrative. Sirer and Eyal analyzed resources wasted for both chains and determined that selfish miners possessed a competitive advantage over a miner on the public blockchain because their rewards are comparatively greater due to less wastage. 

“Once a selfish mining pool reaches the threshold (of a public blockchain), rational miners will preferentially join selfish miners to reap the higher revenues as compared to other pools,” the researchers write. According to them, the scenario may result in a situation where the selfish mining chain becomes a majority of the public blockchain. This will collapse bitcoin’s decentralized nature and a selfish pool manager will control the system.

Limiting Selfish Mining

To a certain extent, bitcoin mining is already centralized within China, a country that is responsible for mining two-thirds of all bitcoins mined in existence (although much of this mining power is the result of China hosting several popular mining pools). This has led to discussions within the cryptocurrency ecosystem about the perils of selfish mining and centralization of bitcoin production. But economists have argued against the effects of selfish mining and consider it a zero-sum game for bitcoin’s future.

For example, Bloq economist Paul Sztorc says that if all miners copy the selfish mining strategy, then “you end up right back where you were before.” According to him, miners will stop selfish mining after they realize that “they’ve only harmed themselves.” Sirer himself has discounted the threat of Chinese miners taking over bitcoin production. “It’s not the case that all Chinese miners are part of the same enterprise or are colluding,” he told Washington Post. 

There is also research concerning the topic. In a 2014 paper, Boston University researcher Ethan Heilman proposed Freshness Preferred, a defense mechanism against selfish mining. Under that scheme, selfish miners would be penalized and their profitability would be reduced by using unforgeable timestamps to penalize miners who withhold blocks.

Article Sources

Investopedia requires writers to use primary sources to support their work. These include white papers, government data, original reporting, and interviews with industry experts. We also reference original research from other reputable publishers where appropriate. You can learn more about the standards we follow in producing accurate, unbiased content in our editorial policy.
  1. Eyal, I., & Sirer, E. G. (2014, March). Majority is not enough: Bitcoin mining is vulnerable. In International conference on financial cryptography and data security (pp. 436-454). Springer, Berlin, Heidelberg.

  2. Washington Post. "The bizarre world of Bitcoin mining finds a new home in Tibet." Accessed Feb. 2, 2021.

  3. Heilman, E. (2014, March). One weird trick to stop selfish miners: Fresh bitcoins, a solution for the honest miner. In International Conference on Financial Cryptography and Data Security (pp. 161-162). Springer, Berlin, Heidelberg.