Fix consensus state when received valid commit message

This commit is contained in:
ChronosX88 2020-10-22 01:05:46 +04:00
parent a7e09d2643
commit 2b8a44f071
Signed by: ChronosXYZ
GPG Key ID: 085A69A82C8C511A

View File

@ -110,6 +110,6 @@ func (pcm *PBFTConsensusManager) handleCommitMessage(message *models.Message) {
if data.commitCount > 2*pcm.maxFaultNodes+1 {
logrus.Debug("consensus successfully finished")
data.State = consensusPrepared
data.State = consensusCommitted
}
}