We think each consensus algorithm can be described as the combination of State Machine and Fork Choice Rules.
Notice For Nebulas, the primary consensus algorithm should be PoD, the DPoS algorithm is just a temporary solution. After the formal verification of PoD algorithm, we will transition mainnet to PoD. All witness (bookkeeper/miner) of DPoS are now accounts officially maintained by Nebulas. We will make sure a smooth transition from DPoS to PoD. We will create new funds to manage all the rewards of bookkeeping. And we will NOT sell those NAS on exchanges. All NAS will be used for building the Nebulas ecosystem, for example, rewarding DApp developers on Nebulas. And we will provide open access to all the spending of these rewards periodically.
As for the DPoS in Nebulas, it can also be decribed as a state machine.
Fork Choice Rules¶
- Always choose the longest chain as the canonical chain.
- If A and B has the same length, we choose the one with smaller hash.