Ta strona służy wyłącznie do celów informacyjnych. Niektóre usługi i funkcje mogą nie być dostępne w jurysdykcji użytkownika.

What is a consensus mechanism?

A consensus mechanism is the set of rules a blockchain network uses to decide which block to accept next and which ledger history to follow. Nodes receive and check data independently. Even when messages arrive at different times or someone submits conflicting information, the nodes need shared rules that let the network continue.

Consensus does not mean that every participant agrees about everything or that every node sees the same data at the same moment. It means that, under the protocol's stated conditions, rule-following nodes can eventually adopt compatible ledger histories and distinguish records that may still change from records that have reached the protocol's required degree of finality.

A valid block is not necessarily the block the network selects

When a node validates a block, it checks protocol rules such as transaction signatures, double-spend prevention and block-size limits. Validation answers: “Is this candidate eligible to be accepted?”

Consensus must also answer: “If several candidates are valid, which one should the network build on?” Network delay can cause two participants to publish different blocks at almost the same time. Both blocks may be valid on their own, but they cannot occupy the same position in one ledger history. Nodes therefore use accumulated work, validator votes, a scheduled order or another protocol signal to choose consistently.

Validity rules determine which data may enter the selection process. Fork-choice and finality rules then determine which history nodes continue to follow. These rules perform different jobs, but this article uses the broad meaning of consensus that includes the rules required to maintain a shared ledger state.

The basic consensus process

Networks differ in their details. The following four stages provide a general model. On block-based ledgers such as Bitcoin and Ethereum, pending data is normally assembled into candidate blocks.

Propose or collect pending data

The protocol defines who may propose, order or collect the next batch of data. Proof of work lets participants compete for the opportunity by performing computation. Proof of stake usually schedules validators using stake, randomness and protocol limits. A permissioned network may let approved nodes take turns proposing data or use several rounds of messages to agree on an order.

On block-based networks, this stage assigns block-production opportunities. More broadly, a consensus mechanism must prevent one participant from gaining equal influence for each of many fake identities. Different designs therefore require computation, staked assets, permission or another scarce qualification.

Validate candidate data

Nodes execute the protocol's checks when they receive a candidate transaction, block or ordering result. The right to propose does not make invalid data valid. Other nodes can reject incorrect signatures, double spends, invalid state transitions and malformed data.

Resolve competing histories

Nodes may receive transactions in different orders or observe several valid blocks at the same height or slot. The protocol must define the processing order or tell nodes which branch to follow. For example, Bitcoin nodes compare the accumulated work of competing branches, while Ethereum proof-of-stake nodes use the stake weight represented by validator attestations to select the block they currently regard as the chain head. When new information arrives, a recently selected branch can be replaced by another branch, a change called a chain reorganization.

Decide when a transaction is sufficiently final

Confirmation and finality describe the chance that a transaction could be replaced. Some mechanisms use probabilistic confirmation: as more blocks follow, rewriting the history generally becomes harder and confidence increases, but no single moment marks a block as absolutely unchangeable. Other mechanisms periodically select reference blocks for voting. These checkpoints can enter a protocol-defined final state after reaching a voting threshold.

Conflicting final results usually mean that assumptions about participation, honest behavior or communication have failed. Networks with stake slashing may also penalize participants who violate protocol rules, but penalties are not a feature of every finality mechanism.

“Final” remains conditional. Software defects, enough malicious participants, a prolonged network split or an emergency action outside the normal protocol can exceed the design's safety assumptions. Users therefore need to distinguish a confirmation count, increasing probabilistic confidence and an explicit finality rule.

Rules commonly included in a consensus mechanism

A complete design is more than a single act of mining or voting. It commonly defines:

  • Participation: who may propose blocks, vote or validate, and how fake identities are limited.
  • Proposal: when and how a participant organizes transactions and publishes a candidate block.
  • Validation: how other nodes determine whether blocks and transactions are valid.
  • Fork choice: which branch nodes follow when several valid branches exist.
  • Finality: when a block should no longer be reverted during normal operation.
  • Fault handling: how the network responds to offline participants, delayed messages or conflicting messages.
  • Rewards and penalties: whether block rewards, transaction fees, slashing or other incentives affect participant behavior.

Not every mechanism presents these rules as separate modules, and not every network uses token rewards. A mechanism should be assessed as a complete process, not only by whether it uses computation or stake.

How common consensus mechanisms differ

Proof of work

Proof of work requires block producers to perform repeated computation until they find a result that satisfies the protocol's difficulty target. When valid chains compete, nodes generally follow the branch with more accumulated work. An attacker seeking to rewrite history must redo the relevant work and catch up with the honest network.

This approach ties influence to verifiable computational work. Its costs include energy, equipment, operations and confirmation time. Actual security also depends on the distribution of computing power, network connectivity, difficulty rules and correct validation by nodes.

Proof of stake

Proof of stake allows validators that lock protocol assets to propose blocks or vote. The protocol defines validator selection, voting weight, rewards, inactivity penalties and the treatment of conflicting votes. Some designs explicitly finalize a block after a voting threshold is reached.

Staking is not simply “holding assets and voting.” Validators still need to run software, check blocks and send protocol messages on time. Selection, penalties and finality rules also differ among proof-of-stake networks.

Permissioned voting or rotating proposers

Some permissioned blockchains define in advance which organizations or nodes may participate in consensus. Those nodes may take turns proposing blocks or use several rounds of messages and votes to confirm an order. Because identities and participant counts are restricted, the system can state how many offline or malicious nodes it can tolerate and what communication conditions it requires. These are its fault assumptions.

Such designs do not require the open computational competition or public staking used by permissionless networks, but they depend on membership controls, key management and organizational governance. Suitability depends on the participants' trust relationships and the system's goals.

The balance between safety and continued operation

Distributed systems often test a consensus design with two questions: can nodes confirm conflicting results, and can the network continue producing blocks? The first property is commonly called safety and the second liveness.

Suppose part of the network temporarily cannot communicate with the rest, creating a network partition. One protocol may pause final confirmation so that the two groups do not finalize conflicting results, but settlement cannot finish during the pause. Another protocol may let both groups continue producing data and later use fork choice to resolve their competing histories. The first approach emphasizes avoiding conflict; the second emphasizes progress but may create a recent branch that must be reverted.

Designs make different assumptions about participant counts, malicious behavior, message delay and synchronization. “Faster confirmation” alone therefore does not establish that one mechanism is better.

Other trade-offs include openness, hardware or staking requirements, confirmation time, throughput, fault recovery, resource consumption and concentration of participation. Improving one property may raise the cost of another.

Consensus cannot prove that offchain information is true

Consensus can make participants accept the same digital record under protocol rules. It cannot by itself establish that information about the outside world is correct. If validators agree to process a price value, that only shows that the value was recorded according to the protocol; it does not prove that the source was accurate or free from manipulation.

Consensus also cannot guarantee that a smart contract has no defect, that a private key has not been stolen or that a user understood the transaction they signed. Data sourcing, software security, key protection and user authorization remain separate problems.

Consensus rules and protocol governance

Consensus rules determine how nodes process blocks now. Protocol governance determines how those rules may change in the future. Developers can propose an upgrade, node operators can choose whether to install software, and validators or other participants may signal support. Publishing code alone does not make every node adopt a new rule.

If participants run incompatible rules, the network may split into separate histories. Communication and adoption during an upgrade are therefore governance questions; how nodes validate and select blocks after the upgrade takes effect is consensus execution. The topics are related but not identical.

FAQ

Is a consensus mechanism just voting?

No. Some mechanisms use explicit votes, while proof of work mainly uses verifiable computation and chain-selection rules to continue a history. Even voting-based systems usually include proposal, validation, fork-choice and finality rules.

Must every node agree at the same time?

No. Nodes can receive messages in different orders and temporarily follow different branches. The goal is for rule-following nodes to converge on compatible results within the stated fault and attack assumptions.

Is a transaction final as soon as it enters a block?

Not necessarily. A transaction may have only an initial confirmation, and its block may still be replaced during a chain reorganization. Finality depends on the specific network's confirmation and finality rules.

Can consensus prevent every attack?

No. It handles particular faults and conflicts only within stated assumptions about the network, participants and resources. Software defects, stolen keys, faulty external data, network isolation or coordinated behavior above the safety threshold can still cause harm.

Continue with blockchain and block, as well as the related concepts of blockchain nodes and cryptographic hashes, or return to the Crypto Glossary.

Sources

Wyłączenie odpowiedzialności
Niniejsza treść ma charakter wyłącznie informacyjny i może obejmować produkty niedostępne w Twoim regionie. Nie ma na celu zapewnienia (i) porady inwestycyjnej lub rekomendacji inwestycyjnej; (ii) oferty lub zachęty do kupna, sprzedaży lub posiadania kryptowalut/aktywów cyfrowych lub (iii) doradztwa finansowego, księgowego, prawnego lub podatkowego. Posiadanie aktywów cyfrowych, w tym stablecoinów, wiąże się z wysokim stopniem ryzyka i może podlegać znacznym wahaniom. Musisz dokładnie rozważyć, czy handel lub posiadanie kryptowalut/aktywów cyfrowych jest dla Ciebie odpowiednie w świetle Twojej sytuacji finansowej. W przypadku pytań dotyczących konkretnej sytuacji skonsultuj się ze swoim doradcą prawnym, podatkowym lub specjalistą ds. inwestycji. Informacje (w tym dane rynkowe i informacje statystyczne, jeśli występują) zawarte w tym poście służą wyłącznie ogólnym celom informacyjnym. Podczas przygotowywania tych danych i wykresów dołożono należytej staranności, jednak nie ponosimy odpowiedzialności za żadne błędy lub pominięcia w niniejszym dokumencie.

© 2025 OKX. Niniejszy artykuł może być powielany lub rozpowszechniany w całości, a także można wykorzystywać jego fragmenty liczące do 100 słów, pod warunkiem że takie wykorzystanie ma charakter niekomercyjny. Każde powielanie lub rozpowszechnianie całego artykułu musi również zawierać wyraźne stwierdzenie: „Ten artykuł jest © 2025 OKX i jest używany za zgodą”. Dozwolone fragmenty muszą odnosić się do nazwy artykułu i zawierać przypis, na przykład „Nazwa artykułu, [nazwisko autora, jeśli dotyczy], © 2025 OKX”. Niektóre treści mogą być generowane lub wspierane przez narzędzia sztucznej inteligencji (AI). Nie są dozwolone żadne prace pochodne ani inne sposoby wykorzystania tego artykułu.

Powiązane artykuły

Wyświetl więcej
crypto-glossary-cover-v5.contentful

Crypto Glossary A–Z

Explore key crypto, blockchain, and trading terms through concise definitions, organized alphabetically for quick reference. [A](#a) · [B](#b) · [C](#c) · [D](#d) · [E](#e) · [F](#f) · [G](#g) · [H](#
28 paź 2026
what-is-blockchain

What is a blockchain?

A blockchain is a distributed digital ledger whose validated records are grouped into blocks and cryptographically linked to prior history. Network participants apply shared protocol rules to proposed
27 paź 2026
what-is-block

What is a block?

A block is a data package that a blockchain uses to group new records. It usually contains transactions or other updates, along with information that nodes use to check them. Except for the first bloc
27 paź 2026
Technical analysis generic thumb

OKX Glossary

Read on for a comprehensive list of common cryptocurrency terms you'll encounter. Common crypto terms Blockchain : A distributed ledger technology that records transaction information about a cryptocu
9 paź 2025
Wyświetl więcej