-
Notifications
You must be signed in to change notification settings - Fork 25
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
chore(starknet_consensus_manager): add proposal init into validate proposal input #2408
base: main
Are you sure you want to change the base?
chore(starknet_consensus_manager): add proposal init into validate proposal input #2408
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2408 +/- ##
==========================================
- Coverage 40.10% 32.26% -7.85%
==========================================
Files 26 119 +93
Lines 1895 14085 +12190
Branches 1895 14085 +12190
==========================================
+ Hits 760 4544 +3784
- Misses 1100 8989 +7889
- Partials 35 552 +517 ☔ View full report in Codecov by Sentry. |
0dc1db4
to
9c9aa6c
Compare
ce0120e
to
73a6ac4
Compare
e104f26
to
b6a3940
Compare
38d7da8
to
c2fba98
Compare
73a6ac4
to
df7d345
Compare
c2fba98
to
4fab329
Compare
df7d345
to
17966b1
Compare
3b7032c
to
5bd0bcd
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.
Reviewable status: 9 of 11 files reviewed, 1 unresolved discussion (waiting on @alonh5 and @matan-starkware)
crates/sequencing/papyrus_consensus_orchestrator/src/papyrus_consensus_context_test.rs
line 75 at r1 (raw file):
Previously, matan-starkware wrote…
- Let's avoid
ValidatorId::default()
since this is 0 which is an illegal address.- Don't set valid_round explicitly because: (a)
validate_proposal
doesn't care about the field, (b) we'll addsignature
field soon which also should be ignored and default makes that seamless.Please do this for all tests
I did that for all the tests I added in this PR.
Done.
6e9ff88
to
7747db5
Compare
Previously, ArniStarkware (Arnon Hod) wrote…
Also, it is based on the change to the validator ID. |
7747db5
to
514e2e7
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 2 of 11 files at r1, 9 of 9 files at r3, all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @ArniStarkware and @matan-starkware)
crates/sequencing/papyrus_consensus_orchestrator/src/papyrus_consensus_context.rs
line 184 at r3 (raw file):
// the block in storage and to getting the transaction was a revert // this flow will fail. wait_for_block(&storage_reader, proposal_init.height)
Maybe it's worth adding let height = proposal_init.height
?
Code quote:
proposal_init.height
b15b075
to
2101554
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.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @alonh5 and @matan-starkware)
crates/sequencing/papyrus_consensus_orchestrator/src/papyrus_consensus_context.rs
line 184 at r3 (raw file):
Previously, alonh5 (Alon Haramati) wrote…
Maybe it's worth adding
let height = proposal_init.height
?
This is consistent with how this variable is handled in a similar function in this file:build_proposal
514e2e7
to
ca6a7be
Compare
ca6a7be
to
12b8a52
Compare
2101554
to
419b2b3
Compare
12b8a52
to
e4c5d31
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 2 of 2 files at r4, all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @ArniStarkware and @matan-starkware)
crates/sequencing/papyrus_consensus_orchestrator/src/papyrus_consensus_context.rs
line 184 at r3 (raw file):
Previously, ArniStarkware (Arnon Hod) wrote…
This is consistent with how this variable is handled in a similar function in this file:
build_proposal
I didn't understand your response. I'm saying proposal_init.height
is used like 7 times in this function so it's probably defining a shorter variable name for it. Same goes for build_proposal
in that case.
e4c5d31
to
11d8683
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.
Reviewable status: 10 of 11 files reviewed, 2 unresolved discussions (waiting on @alonh5 and @matan-starkware)
crates/sequencing/papyrus_consensus_orchestrator/src/papyrus_consensus_context.rs
line 184 at r3 (raw file):
Previously, alonh5 (Alon Haramati) wrote…
I didn't understand your response. I'm saying
proposal_init.height
is used like 7 times in this function so it's probably defining a shorter variable name for it. Same goes forbuild_proposal
in that case.
Done.
11d8683
to
79d57f2
Compare
79d57f2
to
5faeb90
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 5 of 5 files at r5, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @matan-starkware)
5faeb90
to
e460a61
Compare
No description provided.