Consensus: Difference between revisions

From Decimal Wiki
Jump to navigation Jump to search
[checked revision][checked revision]
No edit summary
No edit summary
Line 1: Line 1:
{{#seo:
{{#seo:
                     |title= Консенсус
                     |title= Consensus
                     |titlemode= append  
                     |titlemode= append  
                     |keywords= Консенсус
                     |keywords= Consensus
                     |description= Консенсус
                     |description= Consensus
                     }}
                     }}
<div class="mikio-article-content">
<div class="mikio-article-content">
 
<div class="mikio-tags">
<div class="mikio-tags">




</div>
</div>
<span id="konsensus"></span>
<span id="konsensus"></span>
= Консенсус =
= Consensus =
 
<div class="level1">
<div class="level1">
 
Консенсус - это механизм, согласно которому [[commoninfo:validators|валидаторы]] приходят к общему мнению относительно одного и того же [[commoninfo:whatisblockchain#blok|блока]] и даже относительно каждой [[commoninfo:whatistransaction|транзакции]] .
Consensus is a mechanism according to which [[commoninfo:validators|] validators come to an agreement regarding one [[commoninfo:whatisblockchain#blok|block]] block and even each [[commoninfo:whatistransaction|transaction]] .
 
В DecimalChain, как и в любом другом [[commoninfo:whatisblockchain|блокчейне]] , алгоритм консенсуса описывает, как узлы сети определяют «честные» и «нечестные» транзакции и блоки.
On DecimalChain, as on any other [[commoninfo:whatisblockchain|blockchain]] blockchain, the consensus algorithm describes how network nodes determine "fair" and "unfair" transactions and blocks.
 
 
</div>
</div>
<span id="algoritm_konsensusa_decimal"></span>
<span id="algoritm_konsensusa_decimal"></span>
== Алгоритм консенсуса Decimal ==
== Decimal Consensus Algorithm ==
 
<div class="level2">
<div class="level2">
 
Сеть Decimal основана на движке Tendermint и использует алгоритм консенсуса '''Delegated Proof-of-Stake (DPoS)''' — '''«делегированное подтверждение доли»''' . Этот алгоритм консенсуса считается самым современным, экологичным и перспективным.
The Decimal network is based on the Tendermint engine and uses the consensus algorithm "'Delegated Proof-of-Stake (DPoS)"' — "'"delegated proof of stake""' . This consensus algorithm is considered the most modern, environmentally friendly and promising.
 
'''Суть [[commoninfo:dpos|DPoS]]''' в том, что все участники сети могут передать свои монеты (делегировать) определённым узлам (валидаторам). Только валидаторы формируют, защищают и обеспечивают работу блокчейна, за что сеть Decimal выплачивает валидаторам награду за каждый созданный блок. Награда за блок делится между всеми валидаторами пропорционально их стейку (балансу), а валидаторы, в свою очередь, распределяют эту награду между делегаторами пропорционально их доле (количеству отправленных монет валидатору). Все процессы происходят автоматически, за счёт работы ПО, — человеческий фактор отсутствует.
'''The essence of [[commoninfo:dpos|DPoS]]''' is that all network participants can transfer their coins (delegate) to certain nodes (validators). Only validators form, protect and ensure the operation of the blockchain. For this, the Decimal network pays validators a reward for each block created. The block reward is divided between all validators in proportion to their stake (balance), and the validators, in turn, distribute this reward between the delegators in proportion to their share (the number of coins sent to the validator). All processes occur automatically, through the operation of the software, and no human factor can interrupt the process.
 
Какие-либо изменения в коде могут быть произведены только в том случае, если большинство валидаторов согласятся «загрузить» данные обновления. Таким образом, каждые 120 блоков (примерно 10 минут) делегатор получает вознаграждение пропорционально делегированному стейку.
Any changes can be brought to the network only if the majority of validators agree to "download" the update data. Thus, every 120 blocks (approximately 10 minutes), the delegator receives a reward in proportion to the delegated stake.
 
Каждый валидатор устанавливает комиссию — процент от наград, перечисляемых своим делегаторам. Комиссию валидатор устанавливает один раз, и более она не может быть изменена.
Each validator sets a fee, a percentage of the awards transferred to delegators. The validator sets the fee once, and it cannot be changed any more.
 
 
</div>
</div>
<span id="protokol_tendermint"></span>
<span id="protokol_tendermint"></span>
== Протокол Tendermint ==
== Tendermint Protocol ==
 
<div class="level2">
<div class="level2">
 
''Валидаторы обрабатывают блоки транзакций по протоколу Tendermint''
"Validators process transaction blocks using the Tendermint protocol"
 
'''[[commoninfo:ecosystemspace#tendermint|Tendermint]]''' — это передовое решение проблемы консенсуса, которое гарантирует корректную работу сети, пока хотя бы 2/3 узлов блокчейн-сети, участвующих в формировании блоков, работает корректно. Другими словами, Tendermint обеспечивает эффективную ретрансляцию изменений в блокчейне по всей сети, гарантируя, что каждый узел имеет один и тот же журнал транзакций и состояние блокчейна.
'''[[commoninfo:ecosystemspace#tendermint|Tendermint]]''' is an advanced solution to the issue of consensus which guarantees the correct operation of the network as long as at least 2/3 of the nodes of the blockchain network involved in the formation of blocks are working correctly. In other words, Tendermint provides efficient relay of changes in the blockchain throughout the network, ensuring that each node has the same transaction log and the state of the blockchain.
 
 
</div>
</div>
<span id="stejk_i_otvetstvennost"></span>
<span id="stejk_i_otvetstvennost"></span>
== Стейк и ответственность ==
== Steak and responsibility ==
 
<div class="level2">
<div class="level2">
 
'''Стейк''' — это показатель материальной заинтересованности, который служит гарантией, что валидатор не будет идти против правил сети. За недобросовестные действия валидаторы автоматически штрафуются сетью, поэтому на делегаторах тоже лежит материальная ответственность за выбор валидатора: штрафу подвергается весь стейк валидатора, в котором находятся и средства делегатора.
"Stake" is an indicator of the financial interest which serves as a guarantee that the validator will not violate the rules of the network. For unfair actions, validators are automatically fined by the network, so the delegators are also financially responsible for choosing a validator: the entire validator's stake, in which the delegator's funds are also located, is fined.
 
''[[instructions:howtochooseavalidator|Как выбрать валидатора, читай тут.]]''
'''[[instructions:howtochooseavalidator|How to choose a validator, read here.]]'''
 
 
</div>
</div>
<span id="otzyv_stejka"></span>
<span id="otzyv_stejka"></span>
== Отзыв стейка ==
== Stake Review ==
 
<div class="level2">
<div class="level2">
 
Протоколом Tendermint предусмотрена временная блокировка стейка при его отзыве от валидатора.
The Tendermint protocol provides for temporary blocking of the stake when it is recalled from the validator.
 
В сети Decimal '''этот срок равен примерно 30 дням''' (через 432 000 блоков после отзыва). На время блокировки стейк исключается из расчётов по выплате награды.
On the Decimal network, '''this period is approximately 30 days''' (432,000 blocks after the recall). At the time of blocking, the stake is excluded from the reward calculations.
 
Данная мера введена для защиты сети от недобросовестных действий валидаторов и в целом повышает устойчивость сети, ведь делегаторы не могут слишком часто перемещать свои стейки, а потому более ответственно относятся к выбору валидатора.
This measure was introduced to protect the network from unscrupulous actions of validators and generally increases the stability of the network, because delegators cannot move their stakes too often, and therefore they are more responsible about choosing a validator.
 




</div>
</div>
<div style="clear:both">
<div style="clear:both">




</div>
</div>
 
</div>
</div>
[[commoninfo:validators|валидаторы]] приходят к общему мнению относительно одного и того же [[commoninfo:whatisblockchain#blok|блока]] и даже относительно каждой [[commoninfo:whatistransaction|транзакции]]
[[commoninfo:whatisblockchain|блокчейне]]
[[commoninfo:dpos|DPoS]]
[[commoninfo:ecosystemspace#tendermint|Tendermint]]
[[instructions:howtochooseavalidator|Как выбрать валидатора, читай тут.]]
  [[Category:Commoninfo]]
  [[Category:Commoninfo]]

Revision as of 08:40, 28 June 2022


Consensus

Consensus is a mechanism according to which [[commoninfo:validators|] validators come to an agreement regarding one block block and even each transaction .

On DecimalChain, as on any other blockchain blockchain, the consensus algorithm describes how network nodes determine "fair" and "unfair" transactions and blocks.

Decimal Consensus Algorithm

The Decimal network is based on the Tendermint engine and uses the consensus algorithm "'Delegated Proof-of-Stake (DPoS)"' — "'"delegated proof of stake""' . This consensus algorithm is considered the most modern, environmentally friendly and promising.

The essence of DPoS is that all network participants can transfer their coins (delegate) to certain nodes (validators). Only validators form, protect and ensure the operation of the blockchain. For this, the Decimal network pays validators a reward for each block created. The block reward is divided between all validators in proportion to their stake (balance), and the validators, in turn, distribute this reward between the delegators in proportion to their share (the number of coins sent to the validator). All processes occur automatically, through the operation of the software, and no human factor can interrupt the process.

Any changes can be brought to the network only if the majority of validators agree to "download" the update data. Thus, every 120 blocks (approximately 10 minutes), the delegator receives a reward in proportion to the delegated stake.

Each validator sets a fee, a percentage of the awards transferred to delegators. The validator sets the fee once, and it cannot be changed any more.

Tendermint Protocol

"Validators process transaction blocks using the Tendermint protocol"

Tendermint is an advanced solution to the issue of consensus which guarantees the correct operation of the network as long as at least 2/3 of the nodes of the blockchain network involved in the formation of blocks are working correctly. In other words, Tendermint provides efficient relay of changes in the blockchain throughout the network, ensuring that each node has the same transaction log and the state of the blockchain.

Steak and responsibility

"Stake" is an indicator of the financial interest which serves as a guarantee that the validator will not violate the rules of the network. For unfair actions, validators are automatically fined by the network, so the delegators are also financially responsible for choosing a validator: the entire validator's stake, in which the delegator's funds are also located, is fined.

How to choose a validator, read here.

Stake Review

The Tendermint protocol provides for temporary blocking of the stake when it is recalled from the validator.

On the Decimal network, this period is approximately 30 days (432,000 blocks after the recall). At the time of blocking, the stake is excluded from the reward calculations.

This measure was introduced to protect the network from unscrupulous actions of validators and generally increases the stability of the network, because delegators cannot move their stakes too often, and therefore they are more responsible about choosing a validator.