DPos processing mechanism

in dpos •  4 years ago 

Content

The PoS stock authorization certification mechanism introduces the role of "trustee".

The operating mechanism of DPoS is as follows:

All token holders first elect a trustee to be responsible for signing the block: the election process is similar. The board of directors (101 representatives) is elected by the shareholder meeting to make daily operational decisions on behalf of the shareholder meeting. After the board of directors is authorized, decision-making will be more efficient (Compared with PoW which generates a block every 10 minutes, DPoS can generate a block every 3 seconds.)

Like PoW, the rule of DPoS is that the longest chain wins. Each of the trustees must produce blocks in turn according to the production schedule. Take a factory as an example. Assuming that A, B, and C are scheduled to be produced in early, mid, and late shifts respectively, A cannot access the access control at night. Card enters the factory for production, similarly, C cannot enter the factory during the morning shift.

Today, some malicious nodes produce forked blocks. Assuming that A and C are honest nodes, only node B is malicious. Because B generates blocks at a rate (only 1 block every 9 seconds) is slower than A The speed at which C and C work together to generate blocks (2 generated every 9 seconds), according to the rule that the longest chain wins, the honest node will still win.

In the same way, because a node must generate two duplicate blocks at a slower rate than an honest block, the honest node will still win according to the rule that the longest chain wins.

What if the networks of the three trustees of A, B, and C were fragmented for some time and worked independently? It is indeed possible for the three chains to be parallel in the short term, but once the network connection is restored, the short chain will naturally return to the longest chain.

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!