Commit e0b9539c authored by masala's avatar masala

include time to vote on next epoch

parent c854143a
......@@ -142,7 +142,7 @@ func (s *state) fsm() <-chan time.Time {
var sleep time.Duration
epoch, elapsed, nextEpoch := epochtime.Now()
s.log.Debugf("Current epoch %d, remaining time: %s", epoch, nextEpoch)
if nextEpoch < 3 * time.Minute { // bootstrap time
if nextEpoch < 6 * time.Minute { // bootstrap time for current epoch and next epoch
s.log.Debugf("Too close to epoch boundary, sleeping for %s", nextEpoch)
<-time.After(nextEpoch)
s.votingEpoch = epoch + 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment