From 146e73a6e9f5c72bbdeb21957e9a36b46c6ddc20 Mon Sep 17 00:00:00 2001 From: AnilChinchawale Date: Wed, 14 Nov 2018 17:58:21 +0530 Subject: [PATCH] Fixed wait period longer in when near checkpoit block for all MNs. --- miner/worker.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/miner/worker.go b/miner/worker.go index 387a0bf66c..b42ec17e1e 100644 --- a/miner/worker.go +++ b/miner/worker.go @@ -55,7 +55,7 @@ const ( // timeout waiting for M1 waitPeriod = 10 // timeout for checkpoint. - waitPeriodCheckpoint = 60 + waitPeriodCheckpoint = 30 ) // Agent can register themself with the worker @@ -501,7 +501,7 @@ func (self *worker) commitNewWork() { // Check nearest checkpoint block in hop range. nearest := self.config.XDPoA.Epoch - (parent.Header().Number.Uint64() % self.config.XDPoS.Epoch) if uint64(h) >= nearest { - gap += waitPeriodCheckpoint + gap = waitPeriodCheckpoint * int64(h) } log.Info("Distance from the parent block", "seconds", gap, "hops", h) L: