Skip to main content

Consensus | Bitcoin Glossary | Mapping Bitcoin

Consensus

Protocolo

Also known as: consensus rules, Nakamoto consensus

The set of rules and mechanisms by which all Bitcoin nodes independently agree on the valid state of the blockchain. Consensus rules define which blocks and transactions are valid, ensuring network-wide agreement without a central authority.

Overview

Consensus in Bitcoin refers to the agreement among all participating nodes about which transactions and blocks are valid and which version of the blockchain is the canonical one. This agreement is achieved without any central coordinator through a combination of deterministic rules (consensus rules) and an economic incentive mechanism (proof of work).

Consensus Rules

Every full node independently validates every block and transaction against a comprehensive set of rules:

Transaction-level rules:
  ├── Inputs reference existing, unspent outputs
  ├── Signatures are valid
  ├── Input values ≥ output values
  ├── Scripts execute successfully
  └── Transaction is not a duplicate

Block-level rules:
  ├── Block header hash meets difficulty target
  ├── Block weight ≤ 4,000,000 weight units
  ├── Timestamp is within acceptable range
  ├── Block reward does not exceed allowed subsidy + fees
  ├── Merkle root matches included transactions
  └── All included transactions are valid

Nakamoto Consensus

Bitcoin's specific consensus mechanism, known as Nakamoto Consensus, combines three elements:

  1. Proof of work: Miners expend computational resources to propose new blocks
  2. Longest chain rule: Nodes follow the chain with the most accumulated proof of work
  3. Difficulty adjustment: The mining difficulty adapts to maintain approximately 10-minute block times

Changing Consensus Rules

Modifying consensus rules requires coordination across the decentralized network:

  • Soft fork: A backward-compatible tightening of rules. Old nodes still accept blocks produced under new rules.
  • Hard fork: A backward-incompatible loosening or change of rules. Old nodes would reject blocks produced under new rules, potentially causing a chain split.

Why Consensus Matters

Consensus is what makes Bitcoin trustless. Users do not need to trust any particular miner, developer, or institution. They only need to run a full node that independently verifies every transaction and block. If a miner produces an invalid block, all honest nodes will reject it regardless of how much hash power the miner controls. This property is the foundation of Bitcoin's security and censorship resistance.