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

Merged
merged 1 commit into from
Sep 29, 2024

Conversation

TzahiTaub
Copy link
Contributor

@TzahiTaub TzahiTaub commented Aug 29, 2024

This change is Reviewable

Copy link
Contributor Author

TzahiTaub commented Aug 29, 2024

@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 49.97%. Comparing base (b0cfe82) to head (aa4ea4b).
Report is 133 commits behind head on main.

Files with missing lines Patch % Lines
crates/gateway/src/rpc_objects.rs 0.00% 0 Missing and 2 partials ⚠️

❗ There is a different number of reports uploaded between BASE (b0cfe82) and HEAD (aa4ea4b). Click for more details.

HEAD has 2 uploads less than BASE
Flag BASE (b0cfe82) HEAD (aa4ea4b)
3 1
Additional details and impacted files
@@             Coverage Diff             @@
##             main     #652       +/-   ##
===========================================
- Coverage   74.18%   49.97%   -24.22%     
===========================================
  Files         359      175      -184     
  Lines       36240    20430    -15810     
  Branches    36240    20430    -15810     
===========================================
- Hits        26886    10209    -16677     
- Misses       7220     9138     +1918     
+ Partials     2134     1083     -1051     
Flag Coverage Δ
49.97% <80.00%> (-24.22%) ⬇️

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
@yoavGrs yoavGrs force-pushed the tzahi/mempool/add_l2_gas_price_to_block_header branch from 86de827 to 38d02d8 Compare September 22, 2024 10:11
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)

@yoavGrs yoavGrs force-pushed the tzahi/papyrus_execution/add_l2_gas_price_to_FeeEstimation branch from da4fbcf to 0c0182f Compare September 25, 2024 08:11
@yoavGrs yoavGrs force-pushed the tzahi/mempool/add_l2_gas_price_to_block_header branch from 38d02d8 to 5cbf94a Compare September 25, 2024 08:11
@yoavGrs yoavGrs force-pushed the tzahi/papyrus_execution/add_l2_gas_price_to_FeeEstimation branch from 0c0182f to 2e11701 Compare September 25, 2024 11:32
@yoavGrs yoavGrs changed the base branch from tzahi/papyrus_execution/add_l2_gas_price_to_FeeEstimation to main September 29, 2024 08:01
@yoavGrs yoavGrs force-pushed the tzahi/mempool/add_l2_gas_price_to_block_header branch from 5cbf94a to 189ee9d Compare September 29, 2024 08:28
@yoavGrs yoavGrs force-pushed the tzahi/mempool/add_l2_gas_price_to_block_header branch from 189ee9d to aa4ea4b Compare September 29, 2024 08:37
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 6 of 6 files at r4, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @ShahakShama)

@yoavGrs yoavGrs merged commit cba04c0 into main Sep 29, 2024
19 checks passed
@yoavGrs yoavGrs deleted the tzahi/mempool/add_l2_gas_price_to_block_header branch September 29, 2024 12:41
@github-actions github-actions bot locked and limited conversation to collaborators Oct 3, 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.

3 participants