Finality Gadget

An extra consensus layer that gives confirmed blocks an explicit, irreversible checkpoint.

Basically

A finality gadget uses votes to mark blocks as permanent. It works alongside the system that adds new blocks.

Key Takeaways

  • A finality gadget runs alongside block production and later marks blocks as irreversible. It turns probabilistic finality into deterministic finality.
  • Ethereum’s Casper FFG finalises epoch checkpoints through votes from a two-thirds validator supermajority. Polkadot’s GRANDPA votes on chains rather than individual blocks, so it can finalise many blocks in seconds.
  • Bitcoin has no finality gadget because its proof-of-work consensus uses anonymous miners rather than a known validator set. Protocols such as Babylon instead use Bitcoin’s economic security as a finality layer for other chains.

What Is a Finality Gadget?

A finality gadget is a protocol component that sits above a blockchain’s block production mechanism. It decides when blocks become permanently irreversible. Blocks can first be produced optimistically, with a prefix of the chain finalised later once enough validators agree.

Vitalik Buterin and Virgil Griffith formalised the concept in the 2017 paper Casper the Friendly Finality Gadget. Pure probabilistic consensus, such as Bitcoin’s, never gives an absolute guarantee that a transaction is irreversible. Pure BFT consensus, such as Tendermint, gives instant finality but limits throughput because the previous block must be finalised before the next one can be produced.

Block production and finality are separate concerns. A finality gadget occupies the middle ground between the two consensus models by allowing fast block production and eventual deterministic finality. The chain can keep growing when network conditions or validator disagreement temporarily slow finalisation.

How It Works

Known validators with economic stake vote on which blocks should be final. A supermajority, typically two-thirds by stake weight, makes those blocks irreversible. Reverting a finalised block costs the value of the stake that would be slashed.

Casper FFG (Ethereum)

Ethereum’s Casper FFG is the most widely known finality gadget. It runs alongside the LMD-GHOST fork choice rule in a combined protocol called Gasper. LMD-GHOST handles block-by-block fork choice, while Casper FFG handles epoch-level finality.

Ethereum divides time into slots of 12 seconds each and epochs of 32 slots, or 384 seconds. Checkpoints are the first block of each epoch. Validators are divided into 32 committees, with one committee voting per slot, and each validator publishes an attestation per epoch containing two votes:

Finalisation is a two-step process. The two steps turn validator agreement into an irreversible checkpoint.

Finalisation normally takes two epochs, or 64 slots and roughly 12.8 minutes. Reverting a finalised checkpoint would require slashing at least one-third of all staked ETH. Two supermajority links must overlap by at least one-third of the validator set, which creates this mathematical consequence.

Casper Slashing Conditions

Casper FFG enforces two rules that destroy an offending validator’s stake if violated. These rules make validator misbehaviour provable.

The two conditions guarantee that conflicting checkpoints cannot both be finalised without provable rule violations. At least one-third of validators must violate a rule for that conflict to occur.

GRANDPA (Polkadot)

Polkadot’s GRANDPA, short for GHOST-based Recursive ANcestor Deriving Prefix Agreement, takes a fundamentally different approach. Validators vote on chains rather than individual checkpoint pairs. A vote for a high block transitively endorses all its ancestors, allowing the algorithm to finalise many blocks in one round.

The protocol proceeds in rounds. Each round gathers validator votes and determines which chain prefix can be finalised.

Polkadot uses BABE for block production, with slots of approximately 6 seconds, and GRANDPA separately for finalisation. GRANDPA normally achieves finality in 12 to 60 seconds, significantly faster than Ethereum’s 12.8 minutes. During network recovery, it can finalise millions of blocks at once without additional message overhead because one vote for a high block covers all its ancestors.

Why Bitcoin Doesn’t Have a Finality Gadget

Bitcoin’s proof-of-work consensus provides only probabilistic finality. Each additional confirmation makes reversal exponentially harder, but the probability never reaches exactly zero. Waiting for six confirmations, approximately 60 minutes, is a practical threshold rather than an absolute guarantee.

Adding a finality gadget to Bitcoin would require fundamental changes to its trust model. Its consensus relies on anonymous miners rather than a known validator set.

Babylon: Exporting Bitcoin Security

The Babylon protocol takes the opposite approach by using Bitcoin’s economic security to power finality gadgets on other chains rather than adding one to Bitcoin. BTC holders lock their coins in staking vaults using Bitcoin Script. Finality providers on consumer chains participate in an additional voting round using Extractable One-Time Signatures, or EOTS.

EOTS serves as the slashing mechanism. If a finality provider signs two blocks at the same height, their private key becomes mathematically extractable, allowing anyone to execute a slashing transaction that burns their staked BTC. Babylon also timestamps consumer chain data onto Bitcoin, preventing nothing-at-stake attacks and enabling shorter unbonding periods.

Cross-Chain Bridges

Bridge security depends heavily on finality guarantees. A bridge using probabilistic finality must wait for many confirmations, which increases latency, or risk a chain reorganisation invalidating a transfer already credited on the destination chain. Finality gadgets let bridges act on deterministic finality, reducing both latency and risk.

Layer 2 Settlement

Rollups and other Layer 2 protocols post settlement data to a Layer 1 and benefit from knowing exactly when settlement transactions are irreversible. A finality gadget lets an L2 confirm your withdrawals as soon as the L1 settlement transaction is finalised. You do not need to wait through an extended confirmation period.

DeFi Protocol Safety

DeFi protocols processing large-value transactions need certainty that the underlying state will not be reverted. These transactions include lending liquidations, cross-chain swaps and oracle price updates. Finality gadgets provide protocol-level certainty and reduce the need for application-layer workarounds such as extended confirmation requirements.

Validator Economics

Finality gadgets create a direct economic link between security and stake. The cost of reverting a finalised block is measurable at one-third of total stake, unlike proof-of-work, where the cost of a 51% attack fluctuates with hashrate markets. This quantifiable security makes risk assessment more tractable for institutional users and payment systems that require predictable finality guarantees.

Why It Matters

The choice of finality mechanism directly affects every application built on a blockchain. Probabilistic finality forces a trade-off between speed and safety: accept a transaction quickly and risk reversal, or wait for many confirmations and sacrifice user experience. Finality gadgets remove this trade-off with a clear, protocol-enforced boundary between “might be reverted” and “will never be reverted”.

Payment infrastructure needs to know exactly when a transfer is irreversible so settlement systems can release funds on the other side. Bitcoin Layer 2 protocols such as Spark address this need at a layer where the protocol’s own rules govern transaction finality rather than waiting for on-chain confirmations. You receive faster settlement while security remains anchored to Bitcoin’s base layer.

Liveness vs. Safety

Finality gadgets face an inherent tension between liveness, where the chain keeps producing blocks, and safety, where finalised blocks are never reverted. If more than one-third of validators go offline, the gadget cannot reach the two-thirds supermajority needed to finalise new blocks. Block production continues, but those blocks remain unfinalised, as happened on Ethereum’s Beacon Chain when validator participation dropped below the finalisation threshold.

Validator Centralization

Finality gadgets require a known validator set with economic stake, which introduces centralisation pressure. Security becomes concentrated if a small number of entities control a large portion of staked value. Liquid staking derivatives can exacerbate this problem by pooling stake under a few operators while appearing distributed.

Complexity and Attack Surface

Adding a finality gadget increases protocol complexity. Interaction between block production and finalisation creates edge cases when the gadget falls behind, finalised and unfinalised chains diverge, or network partitions cause conflicting views. Multiple academic analyses of Gasper, Ethereum’s combination of LMD-GHOST and Casper FFG, have identified subtle attack vectors at the boundary between its two components.

Finality Delay

Finality is not instant even with a finality gadget. Ethereum’s 12.8 minutes and Polkadot’s 12 to 60 seconds are both significantly longer than Tendermint’s one to three seconds, where finality is integrated directly into block production. Tendermint-style integrated finality limits throughput because no new block can be produced until the previous one is finalised, while Ethereum’s roadmap includes single-slot finality, or SSF, which would reduce finality time to roughly 12 seconds by finalising each block within its own slot.

Nuri provides this glossary entry for informational purposes only, not as financial or investment advice. Always do your own research before using any protocol or technology.

0

← All 1876 glossary terms