Towards Overcoming the Undercutting Problem

Tiantian Gong, Mohsen Minaei, Wenhai Sun, Aniket Kate

TL;DR

This paper challenges the long-held assumption that "undercutting" attacks will inevitably destabilize Bitcoin as block rewards vanish. By accounting for real-world block size limits and the "cushion" of pending transactions, the authors demonstrate that undercutting is less profitable than previously thought and propose a simple, Nash-equilibrium transaction selection strategy to neutralize the threat.

What Problem Does This Paper Address?

In the early days of Bitcoin, miners were primarily incentivized by fixed block rewards. However, these rewards halve every four years, eventually leaving transaction fees as the sole incentive. Previous research (Carlsten et al., 2016) suggested that in a fee-only world, a strategy called undercutting becomes the rational choice for miners.

In an undercutting attack, a miner deliberately forks the blockchain by creating a new block that leaves high-fee transactions unclaimed. The goal is to tempt other "rational" miners to build on this fork rather than the original chain, as they can claim those lucrative leftover fees in the next block. If successful, this makes the blockchain unstable, as miners constantly undercut each other to steal fee revenue.

The authors of this paper argue that previous models were too pessimistic because they ignored block size limits. In reality, a miner cannot claim an infinite amount of fees in one go, and a backlog of pending transactions (a "cushion") changes the math of profitability.

Methods

The researchers developed a new analytical model that treats mining as a game between honest miners (who follow the longest chain) and rational miners (who shift chains to maximize fees).

Key components of their approach include:

  • Bandwidth Sets: Defining the maximum fees a miner can actually fit into a single block given the size limit.
  • Safe Margins ($D$): Modeling how long a rational miner will persist on a fork before giving up (e.g., $D=1$ or $D=2$ blocks behind).
  • State Transition Modeling: Using Poisson processes to calculate the probability of a fork winning based on the mining power shifted toward it.
  • Undercutting Avoidance Strategy: A proactive defense where a miner calculates the "attack condition" ($T$) and intentionally leaves just enough fees in the mempool to ensure that undercutting their block is no longer profitable for an adversary.

The state transitions for these scenarios are visualized in the paper's models for different safe margins:

State transition for D = 1, where miners give up after falling one block behind.
State transition for D = 2, showing more complex infinite state transitions.

Datasets

The authors validated their model using three types of data:

  1. Bitcoin Mainnet: ~9.1 million transactions from May to June 2020 (immediately following the third halving).
  2. Monero Mainnet: ~1.4 million transactions from May to September 2020, chosen because Monero typically has smaller mempools than Bitcoin.
  3. Artificial Data: Transactions generated with normally distributed fee rates to test the model under controlled statistical conditions.

Key Insights and Ideas

  • The Cushion Effect: When a blockchain is congested (like Bitcoin), the "cushion" of pending transactions makes undercutting difficult. An undercutter who leaves fees behind might just be "squeezing out" other transactions they could have taken, resulting in a net loss.
  • The $\gamma$ Ratio: The critical factor for profitability is the ratio between the fees in the current block and the fees available for the next block. If the next block's potential fees are low relative to the current one, undercutting is rarely rational.
  • Defense as Nash Equilibrium: The authors prove that if miners adopt their "avoidance" transaction selection rule, it becomes a Nash Equilibrium. No miner can gain more by unilaterally deviating back to greedy fee collection if it exposes them to an undercut.
  • Price of Anarchy (PoA): The paper quantifies the "strong undercutter's advantage." Even with defenses, a miner with significantly more power than their closest rival still captures a disproportionate share of fees, suggesting that decentralization remains the best long-term defense.

Key Results

  • Bitcoin Profitability: For a miner with 17.6% of the network's hash power, undercutting only increased their revenue from a fair share of 17.6% to 17.9%. However, a hypothetical 49.9% miner could boost their share to 60.8%.
  • Monero Vulnerability: Because Monero has smaller mempools, it is more susceptible. A 35% attacker could increase their profit by about 8 percentage points through undercutting.
  • Effectiveness of Defense: Implementing the proposed avoidance technique successfully reduced the 35% Monero attacker's revenue back to their fair share. In Bitcoin, the defense limited a 49.9% attacker's advantage to the theoretical "Price of Anarchy" limit (around 63.5% of total returns).

Limitations and Future Work

The authors acknowledge that their model assumes miners have a relatively uniform view of the mempool. In the "wild," network latency and transaction propagation delays could create discrepancies in what different miners see, potentially opening new windows for attack.

Additionally, the paper touches on the "Lemon Market" effect: if undercutting becomes prevalent, users might stop paying high fees for "fast" confirmation because they realize their transactions are being used as bait for forks. Future work could involve modeling this feedback loop between miner behavior and user fee-bidding strategies.

Summary updated

BibTeX
@inproceedings{gong2022towards,
  author = {Tiantian Gong and Mohsen Minaei and Wenhai Sun and Aniket Kate},
  title = {{Towards Overcoming the Undercutting Problem}},
  booktitle = {Financial Cryptography},
  year = {2022},
  doi = {10.1007/978-3-031-18283-9\_22},
}
Figure