-
Notifications
You must be signed in to change notification settings - Fork 21
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
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. Join @TzahiTaub and the rest of your teammates on Graphite |
31fd634
to
9a4cab6
Compare
08e8446
to
ec388a5
Compare
9a4cab6
to
704c48a
Compare
ec388a5
to
ce93e04
Compare
Codecov ReportAttention: Patch coverage is
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
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
2b2b2d6
to
3d7c1a0
Compare
0524be3
to
86de827
Compare
3d7c1a0
to
da4fbcf
Compare
86de827
to
38d02d8
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 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) };
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, 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.
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 @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 aDeprecatedPendingBlock
, that doesn't have al2_gas_price
field.
ah... gotcha
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: complete! all files reviewed, all discussions resolved (waiting on @ShahakShama)
da4fbcf
to
0c0182f
Compare
38d02d8
to
5cbf94a
Compare
0c0182f
to
2e11701
Compare
5cbf94a
to
189ee9d
Compare
189ee9d
to
aa4ea4b
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 6 of 6 files at r4, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @ShahakShama)
This change is