Block Stuffing Attack

Filling blocks with your own high-fee transactions so nobody else's payments get confirmed.

Basically

A block stuffing attack happens when someone fills blocks with their own transactions. Your transactions may not get confirmed until the attack ends.

Key Takeaways

  • A block stuffing attack is an economic denial-of-service attack where an entity floods blocks with their own transactions to crowd out legitimate users and inflate fee market prices.
  • The most famous example occurred during the Fomo3D game on Ethereum in August 2018, where the winner stuffed blocks for roughly three minutes to prevent competing bids and claimed a prize of 10,469 ETH, approximately $2.8 million at the time.
  • Defences like EIP-1559 make sustained block stuffing exponentially more expensive because the base fee is burned rather than paid to validators, and Bitcoin's 10-minute block times make prolonged attacks prohibitively costly.

What Is a Block Stuffing Attack?

A block stuffing attack is a form of economic denial-of-service in which an attacker submits a large number of high-fee transactions to fill available block space. The attacker consumes most or all of a block's capacity, preventing legitimate transactions from being included in new blocks. Other users must either wait for the attack to end or bid even higher fees to compete for the remaining space.

Block stuffing differs from traditional DDoS attacks, which overwhelm network bandwidth or computing resources. It exploits the economic mechanics of blockchain fee markets without compromising nodes or breaking cryptographic guarantees. The attacker simply outbids everyone else for scarce block space, making it a unique attack vector that follows the protocol's own rules while undermining availability for everyone else.

Block stuffing is sometimes called "block filling" or "transaction flooding". Block stuffing specifically refers to the deliberate, strategic filling of blocks rather than accidental congestion from organic demand.

How It Works

A block stuffing attack follows straightforward economic logic. The attacker needs enough capital to outbid all other transaction senders for a sustained period.

Ethereum-Specific Mechanics

Ethereum block stuffing typically involves deploying contracts or calling functions that consume large amounts of gas. The attacker submits transactions with high gas prices that fill the block's gas limit, currently 30 million gas, leaving no room for other transactions. Computationally intensive operations can consume gas without doing useful work, making the attack more efficient.

Pre-EIP-1559 Ethereum allowed the attacker to set a high gasPrice, and miners included the highest-paying transactions. Post-EIP-1559 Ethereum requires the attacker to pay the burned base fee plus a priority fee, making sustained attacks significantly more expensive.

Bitcoin-Specific Considerations

Bitcoin block stuffing works differently because of the UTXO model and longer block times. The attacker creates transactions that fill the ~4 MB block weight limit, but Bitcoin's 10-minute average block interval requires much longer spending to achieve the same denial-of-service effect. A three-minute window on Ethereum, as in the Fomo3D attack, covers roughly 12 blocks, while the same window on Bitcoin would not even span a single block on average.

Bitcoin's fee rate auction is also simpler: the attacker must pay a high sats-per-vbyte rate across large transactions. With current fee levels, filling consecutive Bitcoin blocks for hours would cost tens of thousands of dollars with no mechanism to recover those fees, making sustained block stuffing attacks on Bitcoin economically impractical for most scenarios.

Fomo3D: The Definitive Block Stuffing Attack

The most well-documented block stuffing attack occurred on August 22, 2018, during the first round of Fomo3D, a "last key holder wins the pot" game on Ethereum. The game's mechanics were simple: buying a key resets a countdown timer. The last buyer wins a portion of the prize pool when the timer reaches zero.

A player bought a Fomo3D key and then immediately launched a block stuffing attack, sending multiple high-fee transactions to their own addresses at 501 Gwei gas price. Each stuffed block cost approximately 4 ETH. The attack lasted roughly 175 seconds across blocks 6,191,896 through 6,191,909, preventing any other player, including bots, from submitting competing key purchases.

The attacker claimed 10,469 ETH from the total pot of 21,811 ETH when the timer expired, approximately $2.8 million at the time. The block immediately following the winning moment contained 103 unsuccessful bid attempts from other players whose transactions had been crowded out. The attack was notably profitable because the cost of stuffing blocks was a small fraction of the prize won.

NFT Mint Gas Wars

Competitive NFT mints are not always intentional attacks, but they produce effects nearly identical to block stuffing. During the Yuga Labs Otherdeed mint in May 2022, intense demand pushed gas fees above 8,000 Gwei, users collectively spent over $150 million in gas fees, and more than $4.4 million in ETH was lost to failed transactions. Organic demand rather than a single malicious actor drove this event, but legitimate Ethereum transactions were still effectively priced out for hours.

These gas wars demonstrate that block stuffing does not always require malicious intent. Any scenario where participants are willing to pay extreme fees for time-sensitive transactions produces the same denial-of-service effect on other network users.

Why It Matters

Block stuffing attacks highlight a fundamental tension in blockchain design: the same fee market mechanism that enables permissionless access to block space also allows wealthy actors to monopolise it. The consequences affect censorship resistance, fairness, and the practical usability of blockchain networks during congestion events.

Applications that depend on timely transaction inclusion, including DeFi liquidations, auction mechanics, and time-sensitive settlements, can suffer significant financial losses from block stuffing. Smart contract developers need to account for this attack vector when designing on-chain games, auctions, or any mechanism with countdown timers.

Layer 2 solutions like Spark mitigate block stuffing risk by moving transactions off the base layer. L2 transactions do not compete for L1 block space, so users can continue transacting even when the base layer is congested. Scaling solutions therefore reduce the blast radius of block stuffing attacks on end users.

EIP-1559 Base Fee Mechanism

Ethereum's EIP-1559 upgrade in August 2021 introduced a dynamic base fee that increases by up to 12.5% per block when blocks are more than 50% full. The base fee is burned rather than paid to validators, so sustained block stuffing becomes exponentially more expensive.

Short-duration attacks remain possible because a few blocks can still be stuffed at manageable cost. Multi-hour campaigns needed for sustained denial-of-service become prohibitively expensive. Further analysis of fee market dynamics is available in this research on fee markets.

Bitcoin's Natural Resistance

Bitcoin's protocol characteristics provide natural resistance to block stuffing. Its UTXO model, ~4 MB block weight limit, and 10-minute average block interval make sustained attacks costly.

Application-Level Defences

Smart contract developers can design their applications to be more resistant to block stuffing. They should account for delayed transaction inclusion in on-chain games, auctions, and mechanisms with countdown timers.

Cost-Benefit for Attackers

Block stuffing is only rational when the attacker's expected profit exceeds the cost of filling blocks. In the Fomo3D case, the ~50 ETH cost of stuffing was trivial compared with the 10,469 ETH prize, but the cost of sustained block stuffing is high enough to deter attackers in most scenarios. EIP-1559 and rising gas costs have further tilted the economics against attackers on Ethereum.

Collateral Damage

Block stuffing affects all network participants, not just the target. During a stuffing event, DeFi users may face failed liquidations, delayed settlements, or missed trading opportunities. Time-sensitive operations across the entire network are at risk, making block stuffing a blunt-force attack with broad collateral impact.

MEV and Block Builder Dynamics

Ethereum's rise of MEV extraction and block builders adds complexity. Sophisticated block builders may include or exclude transactions based on their own profit calculations, which can either amplify or reduce the effectiveness of block stuffing depending on the builder's incentives.

Relationship to Other Attacks

Block stuffing is related to but distinct from other blockchain attacks. Unlike a griefing attack, which locks up resources without direct profit motive, block stuffing is typically profit-driven. It differs from sandwich attacks or front-running, which target specific transactions rather than blocking all transactions, and unlike a 51% attack, it requires no control over the consensus mechanism because it works purely through economic competition for block space.

The glossary entry is for informational purposes only and does not constitute financial or investment advice. You should always do your own research before using any protocol or technology.

0

← All 1876 glossary terms