-
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_batcher): add block info to block proposal input #2237
chore(starknet_batcher): add block info to block proposal input #2237
Conversation
Artifacts upload triggered. View details here |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2237 +/- ##
===========================================
- Coverage 40.10% 18.17% -21.93%
===========================================
Files 26 190 +164
Lines 1895 24163 +22268
Branches 1895 24163 +22268
===========================================
+ Hits 760 4392 +3632
- Misses 1100 19393 +18293
- Partials 35 378 +343 ☔ View full report in Codecov by Sentry. |
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: 0 of 5 files reviewed, 1 unresolved discussion (waiting on @alonh5, @ArniStarkware, and @dafnamatsry)
crates/sequencing/papyrus_consensus_orchestrator/src/sequencer_consensus_context.rs
line 119 at r1 (raw file):
}), // TODO: Fill thin block info. thin_block_info: Default::default(),
I think the code will be simpler if consensus passed the entire block_info and we check on our side that the height of the block_info equals the height we are currently working on.
Code quote:
thin_block_info
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: 0 of 5 files reviewed, 1 unresolved discussion (waiting on @alonh5 and @Yael-Starkware)
crates/sequencing/papyrus_consensus_orchestrator/src/sequencer_consensus_context.rs
line 119 at r1 (raw file):
Previously, Yael-Starkware (YaelD) wrote…
I think the code will be simpler if consensus passed the entire block_info and we check on our side that the height of the block_info equals the height we are currently working on.
+1
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: 0 of 5 files reviewed, 1 unresolved discussion (waiting on @dafnamatsry and @Yael-Starkware)
crates/sequencing/papyrus_consensus_orchestrator/src/sequencer_consensus_context.rs
line 119 at r1 (raw file):
Previously, dafnamatsry wrote…
+1
👍
@yair-starkware This is where the Code quote: // TODO: Should we get the gas price here?
// TODO: add proposer address.
// TODO: add whether the kzg mechanism is used for DA. |
ea98c81
to
3b0a743
Compare
a18703c
to
66a6242
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: 0 of 5 files reviewed, 1 unresolved discussion (waiting on @alonh5, @dafnamatsry, and @Yael-Starkware)
crates/sequencing/papyrus_consensus_orchestrator/src/sequencer_consensus_context.rs
line 119 at r1 (raw file):
Previously, alonh5 (Alon Haramati) wrote…
👍
Done.
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 r2, all commit messages.
Reviewable status: all files reviewed, 3 unresolved discussions (waiting on @ArniStarkware, @dafnamatsry, and @Yael-Starkware)
crates/starknet_batcher_types/src/batcher_types.rs
line 38 at r2 (raw file):
pub deadline: chrono::DateTime<Utc>, pub retrospective_block_hash: Option<BlockHashAndNumber>, // TODO: Fill block info.
One TODO in the consensus is enough, you can remove these two.
Code quote:
// TODO: Fill block info.
crates/sequencing/papyrus_consensus_orchestrator/src/sequencer_consensus_context.rs
line 177 at r2 (raw file):
hash: BlockHash::default(), }), // TODO: Fill thin block info.
Suggestion:
// TODO: Fill block info.
66a6242
to
5a70511
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: 3 of 5 files reviewed, 3 unresolved discussions (waiting on @alonh5, @dafnamatsry, and @Yael-Starkware)
crates/starknet_batcher_types/src/batcher_types.rs
line 38 at r2 (raw file):
Previously, alonh5 (Alon Haramati) wrote…
One TODO in the consensus is enough, you can remove these two.
Done.
crates/sequencing/papyrus_consensus_orchestrator/src/sequencer_consensus_context.rs
line 177 at r2 (raw file):
hash: BlockHash::default(), }), // TODO: Fill thin block info.
Done.
5a70511
to
90e2c47
Compare
2c6304f
to
ce229f2
Compare
91a3cc1
to
a3b6c09
Compare
ce229f2
to
a60e8f1
Compare
a3b6c09
to
21891ba
Compare
f991001
to
41313e7
Compare
21891ba
to
5540771
Compare
5540771
to
a90de83
Compare
41313e7
to
50403e4
Compare
263c815
to
e1a8da8
Compare
e1a8da8
to
f632fef
Compare
Benchmark movements: |
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 r7, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @dafnamatsry)
f632fef
to
9d77f07
Compare
9d77f07
to
2377c06
Compare
2377c06
to
51b84b7
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 r9, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @dafnamatsry)
No description provided.