diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/consensus.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/consensus.go b/core/consensus.go index 2f46ec1..bdd35a2 100644 --- a/core/consensus.go +++ b/core/consensus.go @@ -344,6 +344,8 @@ func (con *Consensus) Run(initBlock *types.Block) { } con.logger.Debug("Calling Network.ReceiveChan") go con.processMsg(con.network.ReceiveChan()) + // Sleep until dMoment come. + time.Sleep(con.dMoment.Sub(time.Now().UTC())) con.cfgModule.registerDKG(con.round, int(con.currentConfig.DKGSetSize)/3+1) con.event.RegisterTime(con.dMoment.Add(con.currentConfig.RoundInterval/4), func(time.Time) { |