Fix consensus state when received valid commit message
This commit is contained in:
parent
a7e09d2643
commit
2b8a44f071
@ -110,6 +110,6 @@ func (pcm *PBFTConsensusManager) handleCommitMessage(message *models.Message) {
|
|||||||
|
|
||||||
if data.commitCount > 2*pcm.maxFaultNodes+1 {
|
if data.commitCount > 2*pcm.maxFaultNodes+1 {
|
||||||
logrus.Debug("consensus successfully finished")
|
logrus.Debug("consensus successfully finished")
|
||||||
data.State = consensusPrepared
|
data.State = consensusCommitted
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user