Consensus: Difference between revisions

From Decimal Wiki
Jump to navigation Jump to search
[checked revision][checked revision]
No edit summary
m (CryptoUser moved page Commoninfo:consensus to Consensus)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{#seo:
{{#seo:
                     |title= Консенсус
                     |title= Consensus — Decimal Wiki
                     |titlemode= append  
                     |titlemode= append  
                     |keywords= Консенсус
                     |keywords= Consensus
                     |description= Консенсус
                     |description= Consensus
                     }}
                     }}
<div class="mikio-article-content">
'''Consensus''' is a mechanism according to which [[validator]]s come to an agreement regarding one [[block]] and even each [[transaction]].
On [[DecimalChain]], as on any other [[blockchain]], the [[consensus algorithm]] describes how network nodes determine "fair" and "unfair" [[transaction]]s and blocks.
== Decimal consensus algorithm ==
The Decimal network is based on the [[Tendermint|Tendermint engine]] and uses the consensus algorithm [[DPoS|Delegated Proof-of-Stake (DPoS)]]. This consensus algorithm is considered the most modern, environmentally friendly and promising.
'''The essence of [[DPoS]]''' is that all [[network|network participants]] can transfer their [[coin]]s ([[delegation|delegate]]) to certain [[node]]s (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 [[delegator]]s 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 ==
'''[[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.
=== Stake 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.
* '''[[Manual:How to choose a validator|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.


<div class="mikio-tags">
== See also ==
* [[Consensus protocol]]


 
[[Category:Commoninfo]]
 
[[Category:Blockchain]]
</div>
[[Category:Consensus protocols]]
<span id="konsensus"></span>
= Консенсус =
 
<div class="level1">
 
Консенсус - это механизм, согласно которому [[commoninfo:validators|валидаторы]] приходят к общему мнению относительно одного и того же [[commoninfo:whatisblockchain#blok|блока]] и даже относительно каждой [[commoninfo:whatistransaction|транзакции]] .
 
В DecimalChain, как и в любом другом [[commoninfo:whatisblockchain|блокчейне]] , алгоритм консенсуса описывает, как узлы сети определяют «честные» и «нечестные» транзакции и блоки.
 
 
</div>
<span id="algoritm_konsensusa_decimal"></span>
== Алгоритм консенсуса Decimal ==
 
<div class="level2">
 
Сеть Decimal основана на движке Tendermint и использует алгоритм консенсуса '''Delegated Proof-of-Stake (DPoS)''' — '''«делегированное подтверждение доли»''' . Этот алгоритм консенсуса считается самым современным, экологичным и перспективным.
 
'''Суть [[commoninfo:dpos|DPoS]]''' в том, что все участники сети могут передать свои монеты (делегировать) определённым узлам (валидаторам). Только валидаторы формируют, защищают и обеспечивают работу блокчейна, за что сеть Decimal выплачивает валидаторам награду за каждый созданный блок. Награда за блок делится между всеми валидаторами пропорционально их стейку (балансу), а валидаторы, в свою очередь, распределяют эту награду между делегаторами пропорционально их доле (количеству отправленных монет валидатору). Все процессы происходят автоматически, за счёт работы ПО, — человеческий фактор отсутствует.
 
Какие-либо изменения в коде могут быть произведены только в том случае, если большинство валидаторов согласятся «загрузить» данные обновления. Таким образом, каждые 120 блоков (примерно 10 минут) делегатор получает вознаграждение пропорционально делегированному стейку.
 
Каждый валидатор устанавливает комиссию — процент от наград, перечисляемых своим делегаторам. Комиссию валидатор устанавливает один раз, и более она не может быть изменена.
 
 
</div>
<span id="protokol_tendermint"></span>
== Протокол Tendermint ==
 
<div class="level2">
 
''Валидаторы обрабатывают блоки транзакций по протоколу Tendermint''
 
'''[[commoninfo:ecosystemspace#tendermint|Tendermint]]''' — это передовое решение проблемы консенсуса, которое гарантирует корректную работу сети, пока хотя бы 2/3 узлов блокчейн-сети, участвующих в формировании блоков, работает корректно. Другими словами, Tendermint обеспечивает эффективную ретрансляцию изменений в блокчейне по всей сети, гарантируя, что каждый узел имеет один и тот же журнал транзакций и состояние блокчейна.
 
 
</div>
<span id="stejk_i_otvetstvennost"></span>
== Стейк и ответственность ==
 
<div class="level2">
 
'''Стейк''' — это показатель материальной заинтересованности, который служит гарантией, что валидатор не будет идти против правил сети. За недобросовестные действия валидаторы автоматически штрафуются сетью, поэтому на делегаторах тоже лежит материальная ответственность за выбор валидатора: штрафу подвергается весь стейк валидатора, в котором находятся и средства делегатора.
 
''[[instructions:howtochooseavalidator|Как выбрать валидатора, читай тут.]]''
 
 
</div>
<span id="otzyv_stejka"></span>
== Отзыв стейка ==
 
<div class="level2">
 
Протоколом Tendermint предусмотрена временная блокировка стейка при его отзыве от валидатора.
 
В сети Decimal '''этот срок равен примерно 30 дням''' (через 432 000 блоков после отзыва). На время блокировки стейк исключается из расчётов по выплате награды.
 
Данная мера введена для защиты сети от недобросовестных действий валидаторов и в целом повышает устойчивость сети, ведь делегаторы не могут слишком часто перемещать свои стейки, а потому более ответственно относятся к выбору валидатора.
 
 
 
</div>
<div style="clear:both">
 
 
 
</div>
 
</div>
[[commoninfo:validators|валидаторы]] приходят к общему мнению относительно одного и того же [[commoninfo:whatisblockchain#blok|блока]] и даже относительно каждой [[commoninfo:whatistransaction|транзакции]]
[[commoninfo:whatisblockchain|блокчейне]]
[[commoninfo:dpos|DPoS]]
[[commoninfo:ecosystemspace#tendermint|Tendermint]]
[[instructions:howtochooseavalidator|Как выбрать валидатора, читай тут.]]
[[Category:Commoninfo]]

Latest revision as of 18:10, 13 February 2024

Consensus is a mechanism according to which validators come to an agreement regarding one block and even each transaction.

On DecimalChain, as on any other 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). 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

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.

Stake 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.

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.

See also