[consensus] add remove fbft log after consensus done on leader node.

pull/3460/head
Jacky Wang 4 years ago
parent d150f961a0
commit 356ab98c63
No known key found for this signature in database
GPG Key ID: 1085CE5F4FF5842C
  1. 2
      consensus/consensus_v2.go

@ -157,6 +157,8 @@ func (consensus *Consensus) finalCommit() {
return
}
consensus.FBFTLog.PruneCacheBeforeBlock(block.NumberU64())
// if leader successfully finalizes the block, send committed message to validators
// Note: leader already sent 67% commit in preCommit. The 100% commit won't be sent immediately
// to save network traffic. It will only be sent in retry if consensus doesn't move forward.

Loading…
Cancel
Save