Skip to content

Commit

Permalink
Merge pull request #75 from nspcc-dev/fix-recovery-resp
Browse files Browse the repository at this point in the history
dbft: do not send PrepareRequest immediately after Recovery message
  • Loading branch information
roman-khimov authored May 15, 2023
2 parents a18c441 + 5a6d1e5 commit 25db6ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dbft.go
Original file line number Diff line number Diff line change
Expand Up @@ -593,9 +593,9 @@ func (d *DBFT) onRecoveryMessage(msg payload.ConsensusPayload) {
if prepReq != nil {
totalPrepReq, validPrepReq = 1, 1
d.OnReceive(prepReq)
} else if d.IsPrimary() {
d.sendPrepareRequest()
}
// If the node is primary, then wait until timer fires to send PrepareRequest
// to avoid rush in blocks submission, #74.
}

for _, m := range recovery.GetPrepareResponses(msg, d.Validators) {
Expand Down

0 comments on commit 25db6ba

Please sign in to comment.