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(mempool): add l2_gas_price support in BlockHeader #652

Open
wants to merge 1 commit into
base: tzahi/papyrus_execution/add_l2_gas_price_to_FeeEstimation
Choose a base branch
from

Conversation

TzahiTaub
Copy link
Contributor

@TzahiTaub TzahiTaub commented Aug 29, 2024

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.

Join @TzahiTaub and the rest of your teammates on Graphite Graphite

@TzahiTaub TzahiTaub force-pushed the tzahi/papyrus_execution/add_l2_gas_price_to_FeeEstimation branch from 31fd634 to 9a4cab6 Compare September 1, 2024 13:14
@TzahiTaub TzahiTaub force-pushed the tzahi/mempool/add_l2_gas_price_to_block_header branch from 08e8446 to ec388a5 Compare September 1, 2024 13:14
@yoavGrs yoavGrs force-pushed the tzahi/papyrus_execution/add_l2_gas_price_to_FeeEstimation branch from 9a4cab6 to 704c48a Compare September 5, 2024 07:46
@yoavGrs yoavGrs force-pushed the tzahi/mempool/add_l2_gas_price_to_block_header branch from ec388a5 to ce93e04 Compare September 5, 2024 07:46
Copy link

codecov bot commented Sep 5, 2024

Codecov Report

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

Project coverage is 74.25%. Comparing base (da4fbcf) to head (38d02d8).

Files with missing lines Patch % Lines
crates/gateway/src/rpc_objects.rs 0.00% 0 Missing and 2 partials ⚠️
Additional details and impacted files
@@                                      Coverage Diff                                      @@
##           tzahi/papyrus_execution/add_l2_gas_price_to_FeeEstimation     #652      +/-   ##
=============================================================================================
- Coverage                                                      74.26%   74.25%   -0.02%     
=============================================================================================
  Files                                                            359      359              
  Lines                                                          36249    36262      +13     
  Branches                                                       36249    36262      +13     
=============================================================================================
+ Hits                                                           26920    26925       +5     
- Misses                                                          7195     7202       +7     
- Partials                                                        2134     2135       +1     
Flag Coverage Δ
74.25% <80.00%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@yoavGrs yoavGrs force-pushed the tzahi/papyrus_execution/add_l2_gas_price_to_FeeEstimation branch 5 times, most recently from 2b2b2d6 to 3d7c1a0 Compare September 22, 2024 09:02
@yoavGrs yoavGrs force-pushed the tzahi/mempool/add_l2_gas_price_to_block_header branch 2 times, most recently from 0524be3 to 86de827 Compare September 22, 2024 09:08
@yoavGrs yoavGrs force-pushed the tzahi/papyrus_execution/add_l2_gas_price_to_FeeEstimation branch from 3d7c1a0 to da4fbcf Compare September 22, 2024 10:01
Copy link
Collaborator

@dorimedini-starkware dorimedini-starkware left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 10 of 10 files at r3, all commit messages.
Reviewable status: all files reviewed, 3 unresolved discussions (waiting on @ShahakShama and @TzahiTaub)


crates/papyrus_rpc/src/v0_8/api/test.rs line 598 at r3 (raw file):

    };
    let pending_l2_gas_price =
        GasPricePerToken { price_in_wei: GasPrice(0), price_in_fri: GasPrice(0) };

please refrain from using zero as a price... why not randomize, like with the pending_l1_gas_price above?

Code quote:

price_in_wei: GasPrice(0), price_in_fri: GasPrice(0)

crates/papyrus_rpc/src/v0_8/api/test.rs line 787 at r3 (raw file):

    };
    let pending_l2_gas_price =
        GasPricePerToken { price_in_wei: GasPrice(0), price_in_fri: GasPrice(0) };

ditto

Code quote:

    let pending_l2_gas_price =
        GasPricePerToken { price_in_wei: GasPrice(0), price_in_fri: GasPrice(0) };

crates/papyrus_rpc/src/v0_8/api/test.rs line 976 at r3 (raw file):

    };
    let pending_l2_gas_price =
        GasPricePerToken { price_in_wei: GasPrice(0), price_in_fri: GasPrice(0) };

ditto

Code quote:

    let pending_l2_gas_price =
        GasPricePerToken { price_in_wei: GasPrice(0), price_in_fri: GasPrice(0) };

Copy link
Contributor

@yoavGrs yoavGrs 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: all files reviewed, 3 unresolved discussions (waiting on @dorimedini-starkware, @ShahakShama, and @TzahiTaub)


crates/papyrus_rpc/src/v0_8/api/test.rs line 598 at r3 (raw file):

Previously, dorimedini-starkware wrote…

please refrain from using zero as a price... why not randomize, like with the pending_l1_gas_price above?

The expected_pending_block is compared against a DeprecatedPendingBlock, that doesn't have a l2_gas_price field.

Copy link
Collaborator

@dorimedini-starkware dorimedini-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: all files reviewed, 2 unresolved discussions (waiting on @ShahakShama and @TzahiTaub)


crates/papyrus_rpc/src/v0_8/api/test.rs line 598 at r3 (raw file):

Previously, yoavGrs wrote…

The expected_pending_block is compared against a DeprecatedPendingBlock, that doesn't have a l2_gas_price field.

ah... gotcha

Copy link
Collaborator

@dorimedini-starkware dorimedini-starkware left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @ShahakShama)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants