-
Notifications
You must be signed in to change notification settings - Fork 26
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(blockifier): move GasPrices to snapi #2245
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
71289c1
to
10c393b
Compare
bfa1ba1
to
6a958f8
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2245 +/- ##
===========================================
+ Coverage 40.10% 53.32% +13.21%
===========================================
Files 26 302 +276
Lines 1895 34106 +32211
Branches 1895 34106 +32211
===========================================
+ Hits 760 18187 +17427
- Misses 1100 14637 +13537
- Partials 35 1282 +1247 ☔ View full report in Codecov by Sentry. |
Benchmark movements: |
10c393b
to
73a5586
Compare
6a958f8
to
f5c93b6
Compare
73a5586
to
68c849c
Compare
f5c93b6
to
f63bc29
Compare
68c849c
to
2038d5b
Compare
f63bc29
to
d0e9ff5
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 7 of 10 files at r1, 1 of 3 files at r2, 2 of 2 files at r3, all commit messages.
Reviewable status: all files reviewed, 3 unresolved discussions (waiting on @aner-starkware, @ArniStarkware, and @dorimedini-starkware)
crates/blockifier/src/blockifier/block.rs
line 41 at r3 (raw file):
let expected_eth_l2_gas_price = VersionedConstants::latest_constants() .convert_l1_to_l2_gas_price_round_up( gas_prices.gas_price_vector(&FeeType::Eth).l1_gas_price.into(),
When the call is trivial, it's better to access the field directly instead of using this method. (copied comment from previous PR).
Code quote:
gas_price_vector(&FeeType::Eth)
crates/blockifier/src/blockifier/block.rs
line 65 at r3 (raw file):
} pub fn gas_prices(
Suggestion:
validated_gas_prices
crates/starknet_api/src/transaction/fields.rs
line 469 at r3 (raw file):
#[derive(Clone, Copy, Hash, EnumIter, Eq, PartialEq)] pub enum FeeType {
This isn't a tx field, it's only used in gas prices, right? Wouldn't it be better in the same file with gas prices?
2038d5b
to
47f6640
Compare
d0e9ff5
to
2a0a57d
Compare
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 1 of 1 files at r6, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @aner-starkware and @dorimedini-starkware)
a3c1d51
to
0fa29fe
Compare
0b66a48
to
33cef26
Compare
Benchmark movements: full_committer_flow performance improved 😺 |
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 r7, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @aner-starkware and @dorimedini-starkware)
0fa29fe
to
d128a84
Compare
33cef26
to
fdf402c
Compare
Benchmark movements: full_committer_flow performance improved 😺 |
6acf4b7
to
61e2b40
Compare
fdf402c
to
3d7b232
Compare
Benchmark movements: |
61e2b40
to
680df8d
Compare
3d7b232
to
7669ae6
Compare
7669ae6
to
4444d1b
Compare
Benchmark movements: full_committer_flow performance improved 😺 |
Merge activity
|
No description provided.