Эта страница предназначена исключительно для справочных целей. Некоторые услуги и функции могут быть недоступны в вашем регионе.

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

Дисклеймер
Материалы предоставлены исключительно в ознакомительных целях и могут включать информацию о продуктах, которые недоступны в вашем регионе. Они не являются инвестиционным советом или рекомендацией, предложением или приглашением к покупке, продаже или удержанию криптовалюты / цифровых активов, советом в финансовой, бухгалтерской, юридической или налоговой сфере. Криптовалютные и цифровые активы, в том числе стейблкоины, сопряжены с высокими рисками и подвержены сильным ценовым колебаниям. Тщательно оцените финансовое состояние и определите, подходит ли вам торговля и удерживание цифровых активов. По вопросам, связанным с вашими конкретными обстоятельствами, обращайтесь к специалистам в области законодательства, налогов или инвестиций. Информация, представленная на этой странице (включая рыночные и статистические данные, если таковые имеются), предназначена исключительно для ознакомления. При подготовке статьи были приняты все меры предосторожности, однако автор не несет ответственности за фактические ошибки и упущения.

© OKX, 2025. Эту статью можно копировать и распространять как полностью, так и в цитатах объемом не более 100 слов, при условии некоммерческого использования. При любом копировании или распространении всей статьи должно быть указано: «Разрешение на использование получено от владельца авторских прав на эту статью — © OKX, 2025. Цитаты должны содержать ссылку на название статьи и ее автора, например: «Название статьи, [имя автора, если указано], © OKX, 2025». Часть контента может быть создана с использованием инструментов искусственного интеллекта (ИИ). Создание производных материалов и любое другое использование данной статьи не допускается.

Похожие статьи

Показать еще
private-key

What is a private key?

A private key is secret cryptographic material used by a signing algorithm to produce digital signatures. On a blockchain, a valid signature can satisfy a key-based authorization condition without sen
28 окт. 2026 г.
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 окт. 2026 г.
USDC-DAI-USDT Price: Everything You Need to Know About Stablecoins

What is a stablecoin?

A stablecoin is a crypto asset designed to track a reference value, commonly a fiat currency such as the US dollar. The word “stable” describes a target and a set of mechanisms, not a guarantee. A tok
28 окт. 2026 г.
seed-phrase

What is a seed phrase?

A seed phrase—often called a recovery phrase or mnemonic phrase—is an ordered sequence of words that some wallets use as an input for reconstructing wallet root material. That root material can then b
28 окт. 2026 г.
What is a Web3 wallet? Learn banner

What is a non-custodial wallet?

A non-custodial wallet is an arrangement in which a service provider does not hold the user’s signing keys or equivalent unilateral authority to authorize account activity on the user’s behalf. The us
28 окт. 2026 г.
endereço de carteira blockhain

What is a hot wallet?

A hot wallet is a wallet arrangement in which transaction authorization is available through an internet-connected system. It can prepare and authorize activity without first moving the signing setup
28 окт. 2026 г.
Показать еще