-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle late arriving QUALITY messages in every round
Change the core GPBFT protocol to: 1) accept QUALITY messages in ant phase or round. 2) update candidate chains prior to executing CONVERGE phase based on the initial proposal. This would permit participants with late-arriving/partially delivered QUALITY messages to affect the candidates chains in CONVERGE phase to sway for the initial proposal or any of its prefixes should there be a strong quorum. The changes here essentially execute the QUALITY phase prior to `tryConverge` but without updating the current proposal. The changes above, in conjunction with rebroadcast of QUALITY messages introduced in #597 should significantly reduce the likelihood of lack of progress due to partially seen QUALITY messages. See: - filecoin-project/FIPs#809 #discussioncomment-10409902 As part of the changes introduced by this commit, the data structure used by the instance to store candidate chains is changed to a map of chain keys for a faster candidate set update (O(1)), and a more concise way to assure uniqueness of the set of candidates. Fixes #591
- Loading branch information
Showing
2 changed files
with
56 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters