Skip to content
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(batcher): use the use_kzg_da flag in batcher block builder #2226

Conversation

ArniStarkware
Copy link
Contributor

No description provided.

@reviewable-StarkWare
Copy link

This change is Reviewable

Copy link
Contributor Author

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

Copy link

codecov bot commented Nov 21, 2024

Codecov Report

Attention: Patch coverage is 50.00000% with 2 lines in your changes missing coverage. Please review.

Project coverage is 5.17%. Comparing base (697d9f8) to head (ff7c198).

Files with missing lines Patch % Lines
crates/starknet_batcher/src/block_builder.rs 0.00% 2 Missing ⚠️
Additional details and impacted files
@@                                   Coverage Diff                                    @@
##           arni/batcher/propose_block_input/use_kzg_da/add_value   #2226      +/-   ##
========================================================================================
- Coverage                                                  12.90%   5.17%   -7.74%     
========================================================================================
  Files                                                        189     146      -43     
  Lines                                                      23952   16962    -6990     
  Branches                                                   23952   16962    -6990     
========================================================================================
- Hits                                                        3092     877    -2215     
+ Misses                                                     20506   16011    -4495     
+ Partials                                                     354      74     -280     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.


🚨 Try these New Features:

Copy link
Collaborator

@alonh5 alonh5 left a 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 6 files reviewed, 1 unresolved discussion (waiting on @ArniStarkware and @Yael-Starkware)


crates/starknet_batcher/src/proposal_manager.rs line 68 at r1 (raw file):

        &mut self,
        height: BlockNumber,
        use_kzg_da: bool,

Consider bundling the fields into a struct, that way, you could also remove the clippy override. It will be even more important and convenient when adding the next fields.

Copy link
Contributor

@Yael-Starkware Yael-Starkware left a 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 6 files reviewed, 1 unresolved discussion (waiting on @alonh5)


crates/starknet_batcher/src/proposal_manager.rs line 68 at r1 (raw file):

Previously, alonh5 (Alon Haramati) wrote…

Consider bundling the fields into a struct, that way, you could also remove the clippy override. It will be even more important and convenient when adding the next fields.

maybe a BlockInfo struct should be passed here.

Copy link
Contributor Author

@ArniStarkware ArniStarkware left a 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 6 files reviewed, 1 unresolved discussion (waiting on @alonh5 and @dafnamatsry)


crates/starknet_batcher/src/proposal_manager.rs line 68 at r1 (raw file):

Previously, Yael-Starkware (YaelD) wrote…

maybe a BlockInfo struct should be passed here.

See #2231 towards that goal.

@ArniStarkware ArniStarkware force-pushed the arni/batcher/propose_block_input/use_kzg_da/add_value branch from 155dcd2 to 697d9f8 Compare November 24, 2024 08:14
@ArniStarkware ArniStarkware force-pushed the arni/batcher/propose_block_input/use_kzg_da/pass_to_block_builder branch from 17e423f to ff7c198 Compare November 24, 2024 08:14
@ArniStarkware
Copy link
Contributor Author

Closing this PR, as a more end-to-end approach was taken. See #2238

@github-actions github-actions bot locked and limited conversation to collaborators Nov 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants