Consensus

Deploying the network in a public scenario, we do not need a special organization or authority to maintain it, so we use the Pos-based BABE+Grandpa consensus algorithm, which is similar to Polkadot's Aura+Grandpa, the difference is in the choice of block issuer, Aura uses a round-robin approach to block issuance, while BABE is based on the VRF algorithm to randomly select the block issuer, which ensures fairness. The POW algorithm theoretically suffers from 51% arithmetic attack, and the POS consensus algorithm also theoretically suffers from security problems. Therefore, we have introduced the following mechanism to improve security.

There are three types of nodes on Douglas AMC:Authority node, prophecy machine proof node, general verification node

The authority node is the node that pledges a large amount of margin. The more the margin, the greater his equity to produce blocks, and if it does not produce blocks, or falsifies, its margin will be deducted. Prophecy machine proof nodes are nodes that have pledged a certain amount of margin. A group of nodes are selected by random algorithm, and they get data from the edge chain and sign it and send it to the main chain to get the exchange rate. If a false transaction is sent or no transaction is sent, we will deduct the margin and deprive it of the cross-chain transaction proof node slot. Only after controlling enough.

interest to be a general validation node, which validates the first two types of node behavior and sends forgery.

Last updated