-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ed/timeout #1794
Merged
Merged
Ed/timeout #1794
Changes from all commits
Commits
Show all changes
59 commits
Select commit
Hold shift + click to select a range
56b6663
TimeoutCert trait and TimeoutVote2 trait done
elliedavidson 9aa591b
TimeoutExchange wireframe
elliedavidson 95f1aac
Add TimeoutExchangeType trait
elliedavidson 1acb8a2
Compiles with timeout_exchange added to consensus task
elliedavidson 2d55199
Rough addition of create_timeout_message on timeout_exchange
elliedavidson 809a27a
Add Timeout events to networking task
elliedavidson 14e5336
Consensus task properly recieves TimeoutVotes
elliedavidson d428557
Add timeout exchange and accumulator to consensus task, compiles
elliedavidson 81dd019
Comments
elliedavidson 112a404
Vote collection is receiving timeout votes correctly
elliedavidson f6968ce
Bug - proposals after timeout don't have timeout cert and have too lo…
elliedavidson a519b8e
Fix previous bug
elliedavidson 5d3c145
view change location updated; need to handle update view sent for tim…
elliedavidson 409e8ef
Some bugs fixed, still triggering view sync when it shouldn't
elliedavidson a3017eb
Memory network is not receiving DA proposals correctly
elliedavidson 98c397d
Update timeout test to use libp2p
elliedavidson 76e64cf
comments
elliedavidson 5cdcff5
Fix test_consensus_task test after timeout logic update
elliedavidson ef68488
test_consensus_vote working
elliedavidson 037de03
test_basic passes
elliedavidson 89a14a3
All tests passing?
elliedavidson 702dbd9
merge with main
elliedavidson 70da94b
Tests pass?
elliedavidson 86183cb
Cleaning up TODOs
elliedavidson a9eb94e
More todos
elliedavidson e9d1424
Fix lints
elliedavidson 3fe3d22
rename functions
elliedavidson 7767f5e
Lint imports
elliedavidson 24c6b22
Additional cleanup
elliedavidson a8027c7
Additional cleanup
elliedavidson c248d2e
Additional cleanup
elliedavidson bb0eb5f
Fix lint bug
elliedavidson 5259ca6
Fix lint bug
elliedavidson 3d6fcb2
Fix fmt
elliedavidson f3ce354
Update view sync view update
elliedavidson 539964d
Add 1 thread to catchup just command
elliedavidson de0744c
Compiles, tests do not pass
elliedavidson 148937d
basic tests pass
elliedavidson 3028fa0
Tests passing?
elliedavidson f192190
lints
elliedavidson 50eb9cb
lints
elliedavidson e0b7371
lints
elliedavidson d7e8ebf
lints
elliedavidson fba4909
remove get_commit func
elliedavidson 5e01be8
Fix subtraction overflow
elliedavidson f684c3e
Merge with develop
elliedavidson 5eb3afa
Update state map even if no parent
elliedavidson cf095c4
Test timeout on both libp2p and web
elliedavidson 721abe5
lint
elliedavidson b3fb79b
comments
elliedavidson 1e7eb39
update metrics
elliedavidson bdd8012
metric updates
elliedavidson 8acca28
Create own timeout cert validation function
elliedavidson 944c98a
lints:
elliedavidson dff85fd
Comments
elliedavidson 914e890
Comments
elliedavidson 0fb23e3
lints
elliedavidson 689f959
Add return if proposal is invliad
elliedavidson 6fd0f40
lints
elliedavidson File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,6 +27,7 @@ pub struct BLSPubKey { | |
pub_key: VerKey, | ||
} | ||
|
||
// #[allow(clippy::incorrect_partial_ord_impl_on_ord_type)] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also dead code here? |
||
impl PartialOrd for BLSPubKey { | ||
fn partial_cmp(&self, other: &Self) -> Option<Ordering> { | ||
let self_bytes = &self.pub_key.to_string(); | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -136,6 +136,9 @@ impl<S: Default + Debug> NetworkNodeHandle<S> { | |
/// | ||
/// Will panic if a handler is already spawned | ||
#[allow(clippy::unused_async)] | ||
// // Tokio and async_std disagree how this function should be linted | ||
// #[allow(clippy::ignored_unit_patterns)] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also dead code here? |
||
|
||
pub async fn spawn_handler<F, RET>(self: &Arc<Self>, cb: F) -> impl Future<Output = ()> | ||
where | ||
F: Fn(NetworkEvent, Arc<NetworkNodeHandle<S>>) -> RET + Sync + Send + 'static, | ||
|
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want to get rid of this dead code?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I kept this in because my local clippy needed it. I expect once CI's clippy is upgraded we'll need to uncomment these. :)