Skip to content

Commit

Permalink
Shorten timeout at COMMIT phase when justified
Browse files Browse the repository at this point in the history
When justified by a strong quorum, shorten the timeout at `COMMIT`
phase.

Fixes #242
  • Loading branch information
masih committed Jun 7, 2024
1 parent bc77de6 commit 3ffcd90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gpbft/gpbft.go
Original file line number Diff line number Diff line change
Expand Up @@ -749,7 +749,7 @@ func (i *instance) tryCommit(round uint64) error {
// The participant isn't influencing that decision against their interest, just accepting it.
i.value = quorumValue
i.beginDecide(round)
} else if i.round == round && i.phase == COMMIT_PHASE && timedOut {
} else if i.round == round && i.phase == COMMIT_PHASE && (timedOut || foundStrongQuorum) {
if foundStrongQuorum {
// If there is a strong quorum for bottom, carry forward the existing proposal.
} else {
Expand Down

0 comments on commit 3ffcd90

Please sign in to comment.