BuildOnViction / tomochain-v1

The efficient blockchain for the token economy
https://tomochain.com
GNU Lesser General Public License v3.0
51 stars 22 forks source link

Design checkpoint block on every epoch #11

Closed ngtuna closed 6 years ago

ngtuna commented 6 years ago

In each epoch, there will be checkpoint block created for these below actions:

ngtuna commented 6 years ago

Step by step:

Calculate reward/slash:

1) calculate reward by signatures 2) calculate slash if it is needed

Set of new masternodes:

1) collect seed matrix 2) update set of new masternodes (validators) for next epoch 3) calculate pair <m1,m2>

ngtuna commented 6 years ago

Following actions must be executed at checkpoint block:

ngtuna commented 6 years ago

Done via couple of PRs. Checkpoint block design is clear for now.