fix comment

pull/3419/head
Rongjian Lan 4 years ago
parent 786162c0a7
commit 38fe2a4422
  1. 2
      consensus/view_change.go

@ -131,7 +131,7 @@ func (consensus *Consensus) getNextViewID() (uint64, time.Duration) {
if curTimestamp <= blockTimestamp {
return consensus.fallbackNextViewID()
}
// diff is at least 1, and it won't exceed the totalNode
// diff only increases
diff := uint64((curTimestamp - blockTimestamp) / viewChangeTimeout)
nextViewID := diff + consensus.GetCurBlockViewID()

Loading…
Cancel
Save