The consensus layer is the part of a blockchain system responsible for getting the network's nodes to agree on which blocks are valid and in what order. It decides who may propose the next block, how other participants vote on it and when blocks become final. The term is used most often for Ethereum, where the consensus layer is the proof-of-stake system that grew out of the Beacon Chain and has secured the network since the Merge in September 2022.
Ethereum separates the consensus layer from the execution layer, which runs transactions and smart contracts in the Ethereum Virtual Machine. The same language is used more broadly in "modular" blockchain designs, which split a network's jobs into separate layers for execution, settlement, consensus and data availability. In each case, the consensus layer is the part that answers the question "what is the agreed history?", as described under consensus.
Consensus layer in plain terms
Think of a busy restaurant kitchen. The cooks prepare the dishes, but someone at the pass has to decide the order in which plates go out and check that each one is right before it leaves. If that person did not exist, two waiters might grab the same plate, or plates would leave in a muddle.
On Ethereum, the execution layer is the cooks, working through each transaction. The consensus layer is the person at the pass: it picks who gets to put the next batch of transactions forward, gathers votes from thousands of validators on whether the batch is acceptable, and eventually stamps blocks as final so nobody can swap them out later.
How Ethereum's consensus layer works
Ethereum's consensus layer organises time into 12-second slots grouped into 32-slot epochs. Its main elements are:
- Validators. Participants who deposit ether as stake and run validator software. Each slot, one of the validators is randomly chosen to propose a block, and committees of others attest to it.
- Fork choice. A rule called LMD GHOST tells nodes which chain to follow when there are competing blocks, based on the latest votes.
- Finality. A gadget derived from Casper FFG finalizes checkpoints once validators holding two-thirds of the stake have voted for them across two epochs.
- Rewards and penalties. Validators earn rewards for timely duties, small penalties for missing them and much larger "slashing" penalties for provably dishonest behaviour.
Together these rules, known as Gasper, give Ethereum economic finality: reversing a finalized block would require destroying at least one-third of all staked ether. Stake can be committed directly, through staking pools or through liquid staking services.
Clients and the Engine API
Every Ethereum node runs two pieces of software side by side: a consensus client and an execution client, which communicate through a standard interface called the Engine API. The consensus client follows the chain and tells the execution client which block to build on; the execution client checks transactions and reports back. Several independent teams build consensus clients, such as Prysm, Lighthouse, Teku, Nimbus and Lodestar. Keeping a healthy spread of usage among them, known as client diversity, limits the damage a single bug could do; a blockchain client bug that affects a majority client could cause finality to fail or even finalize an invalid chain.
Consensus layers in modular blockchains
Modular designs separate jobs that monolithic chains combine. Rollups and other layer 2 networks handle execution but rely on a base chain such as Ethereum for consensus and settlement. Some networks specialise in providing consensus and data availability for others, using techniques such as data availability sampling so that light nodes can check that block data was published. In these systems, "consensus layer" refers to whichever network orders the data and guarantees it will not be changed.
Upgrades and criticism
Ethereum's consensus layer has been upgraded several times, enabling withdrawals in 2023 and raising the maximum balance per validator in 2025. Researchers are working on shorter finality times and on reducing the influence of block builders. Critics argue that stake is concentrated in a few large providers and exchanges, raising concerns about decentralization and censorship resistance, and that the system's complexity creates risk. Supporters point to the drop of more than 99% in Ethereum's energy use after the move from proof of work. The network as a whole is described under Ethereum Blockchain.