From 045be85332c9a555cac563f58c1c830f7fa26460 Mon Sep 17 00:00:00 2001 From: Rongjian Lan Date: Mon, 28 Jan 2019 15:16:07 -0800 Subject: [PATCH] Add back temp delay --- consensus/consensus_leader.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/consensus/consensus_leader.go b/consensus/consensus_leader.go index da2d44213..e11dde20b 100644 --- a/consensus/consensus_leader.go +++ b/consensus/consensus_leader.go @@ -289,6 +289,8 @@ func (consensus *Consensus) processCommitMessage(message consensus_proto.Message utils.GetLogInstance().Debug("HOORAY!!! CONSENSUS REACHED!!!", "consensusID", consensus.consensusID, "numOfSignatures", len(*commitSigs)) + // TODO: remove this temporary delay + time.Sleep(500 * time.Millisecond) // Send signal to Node so the new block can be added and new round of consensus can be triggered consensus.ReadySignal <- struct{}{} }