bosnet / sebak

SEBAK, the next BOScoin Blockchain
https://devteam.blockchainos.org
GNU General Public License v3.0
44 stars 15 forks source link

Resolve long time consensus stuck by network and simple refactorings #915

Closed Charleslee522 closed 5 years ago

Charleslee522 commented 5 years ago

Github Issue

fixes #900

Solution

  1. When receiving the old ballot, a node broadcasts expired ballot.
  2. If the ballot what a node has is old, a node removes it from the voting results and broadcasts an expired ballot
  3. Because of expired ballot, the consensus stuck is resolved and the next round of voting begins.

ps. As usual, please check each commits

@spikeekips Thanks for your awesome design idea :)

Charleslee522 commented 5 years ago

@anarcher @kfangw @Geod24 Do you need any help? More description or something? :)

Charleslee522 commented 5 years ago

@spikeekips can i merge it? :)