Blockchain
Consensus Mechanism
Protocol and algorithms enabling distributed network participants to agree on the correct blockchain state.
Last Updated
2026-03-19
Related Concepts
What is a Consensus Mechanism?
A consensus mechanism is the process and set of mathematical rules (algorithms) used by distributed nodes in a blockchain to reach a single, agreed-upon version of the truth. It ensures that every participant sees the same transaction history without needing a central authority.
How does a Consensus Mechanism work?
- New transactions are broadcast to all nodes in the network.
- Nodes group these transactions into blocks and verify their validity.
- A specific protocol selects which node gets to "propose" the next block (e.g., Proof of Work or Proof of Stake).
- Other nodes validate the proposed block according to the network's consensus algorithm.
- Once a block is confirmed, all nodes update their local copy of the ledger to match.
- The mechanism includes rules for resolving "forks" and finding the "canonical" chain.
Why does a Consensus Mechanism matter?
Consensus is the "engine" that makes a blockchain a decentralized system. It allows a global network of strangers to work together trustlessly, preventing fraud, double-spending, and tampering while maintaining a single, permanent source of truth.
Key features of a Consensus Mechanism
- Universal agreement on data across all nodes
- Decentralized verification (no single point of failure)
- Determines transaction speed (TPS), cost, and security
- Resilience to network errors and malicious attacks
- Foundation of trust in a permissionless environment
Examples of a Consensus Mechanism
- Proof of Work (PoW), where Bitcoin miners solve puzzles to agree on the next block.
- Proof of Stake (PoS), where Ethereum validators are chosen based on the assets they have staked.
- Gasper, the algorithm used by Ethereum to combine finality and fork-choice rules.
