Fix leader consensus retry logic

pull/1245/head
Rongjian Lan 5 years ago
parent a61a749d00
commit e29564c04d
  1. 2
      node/node_newblock.go

@ -45,7 +45,7 @@ func (node *Node) WaitForConsensusReadyv2(readySignal chan struct{}, stopChan ch
case <-time.After(ConsensusTimeOut * time.Second):
if node.Consensus.PubKey.IsEqual(node.Consensus.LeaderPubKey) {
utils.GetLogInstance().Debug("Leader consensus timeout, retry!", "count", timeoutCount)
//node.Consensus.ResetState()
node.Consensus.ResetState()
timeoutCount++
if newBlock != nil {
// Send the new block to Consensus so it can be confirmed.

Loading…
Cancel
Save