Skill 7.1.3
Explain proof-of-stake consensus and finality
Key Concepts
Until the Merge on 15 September 2022, Ethereum used proof of work: miners competed to solve a hashing puzzle (Ethash) to produce blocks about every 13 to 15 seconds and received block rewards. The Merge joined the original execution chain to the proof-of-stake Beacon Chain, cutting the network's energy use by more than 99.9%.
In proof of stake, validators deposit at least 32 ETH. Time is divided into 12-second slots and 32-slot epochs (6.4 minutes). In each slot, one randomly selected validator proposes a block, and committees of validators attest to it. Validators earn rewards for correct duties and lose stake for being offline or, much more heavily, are slashed for provably dishonest behaviour such as proposing two blocks for one slot.
Ethereum's consensus (Gasper) combines a fork-choice rule (LMD-GHOST) with a finality gadget (Casper FFG). When two thirds of staked ether attests to checkpoints in consecutive epochs, a block becomes finalised, normally after about two epochs (about 13 minutes).