> ## Documentation Index
> Fetch the complete documentation index at: https://docs.theblockchainlibrary.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Consensus

> Consensus is the process in a decentralized network where nodes agree on the validity of transactions and the current state of the blockchain. Since there is no central authority, a mathematical agreement mechanism ensures that all participants reach a unified version of truth, p

# Consensus

Consensus is the process in a decentralized network where nodes agree on the validity of transactions and the current state of the blockchain. Since there is no central authority, a mathematical agreement mechanism ensures that all participants reach a unified version of truth, preventing conflicts and double-spending. This state of distributed agreement is what allows blockchain networks to function as trustless, peer-to-peer systems without the need for intermediaries or external verification agencies.

## Definition

Consensus is the process in a decentralized network where nodes agree on the validity of transactions and the current state of the blockchain. Since there is no central authority, a mathematical agreement mechanism ensures that all participants reach a unified version of truth, preventing conflicts and double-spending. This state of distributed agreement is what allows blockchain networks to function as trustless, peer-to-peer systems without the need for intermediaries or external verification agencies.

## Simple explanation

Imagine a classroom where everyone has to agree on what color the wall is. Instead of listening to a teacher, everyone looks at the wall and votes. Consensus is just the way the computers in a network 'vote' to agree on what happened in a transaction.

## Why it matters

Consensus is the bedrock of decentralization, ensuring that a network remains secure and synchronized without a single point of failure. It enables users to trust the system’s data rather than needing to trust a specific person or bank.

## How it works

Participants follow a specific set of rules to propose and validate blocks. Once a majority or specific threshold of validators verify the data against network rules, the new state is appended to the chain. This synchronization occurs across the entire global network in real time.

## Real-world example

The Ethereum network achieves consensus via Proof of Stake, where validators agree on the state of the blockchain to process ETH transactions.

## Advantages

* Provides a single version of truth
* Enables decentralization without intermediaries
* Protects against malicious network actors

## Limitations

* Often requires significant computational energy
* Can lead to slower transaction throughput
* Vulnerable to centralization if nodes coordinate

## Common misconceptions

* People often think consensus means total unanimity, but it usually only requires a majority or a specific threshold of nodes. It is also frequently confused with the specific algorithm used to achieve it.

## Related knowledge

* [Blockchain](https://docs.theblockchainlibrary.com/categories/blockchain) — term
* [Consensus Algorithm](https://docs.theblockchainlibrary.com/generated/v2/glossary/consensus-algorithm) — term
* [Decentralization](https://docs.theblockchainlibrary.com/generated/v2/glossary/decentralization) — term
* [Node](https://docs.theblockchainlibrary.com/generated/v2/glossary/node) — term
* [Proof of Stake](https://docs.theblockchainlibrary.com/generated/v2/books/proof-of-stake) — term
* [Validator](https://docs.theblockchainlibrary.com/generated/v2/glossary/validator) — term

***

**Canonical knowledge ID:** `glossary:consensus`


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.