-
Notifications
You must be signed in to change notification settings - Fork 85
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
feat(consensus): add an error type for consensus and utlize in SingleHeightConsensus #2064
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2064 +/- ##
==========================================
+ Coverage 68.68% 68.73% +0.04%
==========================================
Files 131 131
Lines 17486 17486
Branches 17486 17486
==========================================
+ Hits 12011 12019 +8
+ Misses 4143 4133 -10
- Partials 1332 1334 +2 ☔ View full report in Codecov by Sentry. |
6df1e6c
to
0df3bb0
Compare
0c0cc1a
to
d1c03f4
Compare
0df3bb0
to
00fa36f
Compare
d1c03f4
to
ea805e8
Compare
00fa36f
to
e376af6
Compare
ea805e8
to
1893346
Compare
e376af6
to
1bb8e79
Compare
1893346
to
5dd7233
Compare
1bb8e79
to
fd9e2f1
Compare
5dd7233
to
972ebff
Compare
fd9e2f1
to
cbdc72a
Compare
972ebff
to
fdb5ac2
Compare
cbdc72a
to
3101a95
Compare
fdb5ac2
to
7b19afe
Compare
3101a95
to
422f130
Compare
7b19afe
to
97dd99a
Compare
422f130
to
e4e9c88
Compare
97dd99a
to
602d088
Compare
e4e9c88
to
eb3fe26
Compare
602d088
to
676d79a
Compare
eb3fe26
to
9fc58ce
Compare
676d79a
to
d4f188e
Compare
0d41b07
to
89f68db
Compare
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.
Reviewed 3 of 4 files at r2, 1 of 1 files at r3, all commit messages.
Reviewable status: 4 of 5 files reviewed, 3 unresolved discussions (waiting on @matan-starkware)
a discussion (no related file):
Try to make the comment more concise. To see ten lines of documentation for each line of code is annoying, time-consuming when reading the code, and has overhead for maintenance.
crates/sequencing/papyrus_consensus/Cargo.toml
line 14 at r3 (raw file):
starknet_api.workspace = true tokio = { workspace = true, features = ["full"] } thiserror.workspace = true
We try to order the dependencies alphabetically
Code quote:
tokio = { workspace = true, features = ["full"] }
thiserror.workspace = true
crates/sequencing/papyrus_consensus/src/single_height_consensus.rs
line 65 at r3 (raw file):
// This means that Context failed when building a proposal. While Tendermint is able to // handle invalid proposals, I think it's more straightforward to panic here. If needed, we // can change this to work like an invalid proposal.
Consider deleting this entire comment as an example of where you can be more concise in comments.
Code quote:
// This means that Context failed when building a proposal. While Tendermint is able to
// handle invalid proposals, I think it's more straightforward to panic here. If needed, we
// can change this to work like an invalid proposal.
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.
Reviewable status: 4 of 5 files reviewed, 3 unresolved discussions (waiting on @DvirYo-starkware)
a discussion (no related file):
Previously, DvirYo-starkware wrote…
Try to make the comment more concise. To see ten lines of documentation for each line of code is annoying, time-consuming when reading the code, and has overhead for maintenance.
Done.
crates/sequencing/papyrus_consensus/Cargo.toml
line 14 at r3 (raw file):
Previously, DvirYo-starkware wrote…
We try to order the dependencies alphabetically
oh I had assumed VScode would do that automatically.
crates/sequencing/papyrus_consensus/src/single_height_consensus.rs
line 65 at r3 (raw file):
Previously, DvirYo-starkware wrote…
Consider deleting this entire comment as an example of where you can be more concise in comments.
Done.
89f68db
to
3bef887
Compare
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.
Reviewed 3 of 3 files at r4, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @matan-starkware)
…HeightConsensus Most of the error locations remain `expect` as their meaning will change significantly once we actually have Tendermint, which, being a byzantine consensus protocol, is able to handle certain failures.
3bef887
to
7acc57e
Compare
This change is