-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Initial commit * Propose the same block at the end of the epoch * No VID and DAC required for the additional last block proposals * Guard against division by 0 * Traverse the leaves to check an eQC * Remove unneeded async in function definition * Remove trace * Make sure proposal is for the same block if justify QC references the last block * Initial commit * Gate epoch proposal logic * Gate epochs voting logic * Create helper method to check if QC is part of 3-chain * Update epoch on `ViewChange` event * Adjust tests * Update view and epoch when QC is formed * Fixes after review * Get rid of nasty nested if-elses * Fix fmt * Update VID that we reuse at the end of the epoch * Fix fmt * Do not create VID and DAC dependencies when voting for the last block * Simplify how we get a header * NetworkEventTaskState uses OuterConsensus * Refactor some of the eQC related methods in `Consensus` * Add back a debugging trace * Last eQC vote is broadcast * Do not check if we are the leader when receiving last votes for eQC * Add more traces * Correctly update epoch when voting and forming QC * Send ViewChange event when voting after shared state's been updated * Adjust tests * Remove an obsolete DA ViewChange code * Fetch proposal if missing when changing view after forming QC * Fix deadlock * Update epoch only when receiving or forming an eQC * update logging (#3844) * [Tech debt] Remove `async-std` (#3845) * tests and CI * remove `async-std` * `fmt` * fix doc build * remove counter tests * remove counter tests * build w/o lockfile * `lock` -> `std` * Revert "`lock` -> `std`" This reverts commit 21ebf05. * lock * `async_broadcast` * overflow * Revert "`async_broadcast`" This reverts commit f03bb57. * `try_send` * Fix fmt * Simplify code * Move a helper function to types crate * Add epoch safety check * Rename storage method * Clean up the code * Compare to genesis view --------- Co-authored-by: ss-es <155648797+ss-es@users.noreply.github.com> Co-authored-by: rob-maron <132852777+rob-maron@users.noreply.github.com>
- Loading branch information
1 parent
c04a16a
commit 32e6970
Showing
14 changed files
with
149 additions
and
42 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
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
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
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
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
Oops, something went wrong.