From a41602b60139c35ee2fb1d7ac02326aa58b56b69 Mon Sep 17 00:00:00 2001 From: Rongjian Lan Date: Sun, 23 Jun 2019 03:03:57 -0700 Subject: [PATCH] Enable consensus retry --- node/node_newblock.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/node/node_newblock.go b/node/node_newblock.go index 2cb4c98b5..e11e8a5c7 100644 --- a/node/node_newblock.go +++ b/node/node_newblock.go @@ -17,7 +17,7 @@ import ( // Constants of lower bound limit of a new block. const ( ConsensusTimeOut = 30 - PeriodicBlock = 1 * time.Second + PeriodicBlock = 200 * time.Millisecond ) // WaitForConsensusReadyv2 listen for the readiness signal from consensus and generate new block for consensus. @@ -86,7 +86,7 @@ func (node *Node) WaitForConsensusReadyv2(readySignal chan struct{}, stopChan ch log.Debug("Failed updating worker's state", "Error", err) continue } - newBlock, err := node.Worker.Commit(sig, mask, viewID, coinbase) + newBlock, err = node.Worker.Commit(sig, mask, viewID, coinbase) if err != nil { ctxerror.Log15(utils.GetLogger().Error,