From 16c1b06269a64df08ae4541752253541ace5afa3 Mon Sep 17 00:00:00 2001 From: Rongjian Lan Date: Tue, 28 Jul 2020 13:01:48 -0700 Subject: [PATCH] fix 5 second duration fork --- consensus/consensus_service.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/consensus/consensus_service.go b/consensus/consensus_service.go index b6d91ed01..72b540554 100644 --- a/consensus/consensus_service.go +++ b/consensus/consensus_service.go @@ -347,7 +347,7 @@ func (consensus *Consensus) UpdateConsensusInformation() Mode { } } - if consensus.ChainReader.Config().IsFiveSeconds(nextEpoch) { + if consensus.ChainReader.Config().IsFiveSeconds(curEpoch) { consensus.BlockPeriod = time.Duration(5 * time.Second) }