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

chore(blockifier): have limit_steps_by_resources flag rep charge_fee flag and enforce_fee ret val #833

Open
wants to merge 1 commit into
base: avivg/blockifier/combine_charge_fee_w_enforce_fee
Choose a base branch
from

Conversation

avivg-starkware
Copy link

@avivg-starkware avivg-starkware commented Sep 17, 2024

This change is Reviewable

@avivg-starkware avivg-starkware force-pushed the avivg/blockifier/combine_charge_fee_w_limit_steps_by_resources branch 2 times, most recently from 3a57b77 to bf61e1c Compare September 17, 2024 07:39
Copy link

codecov bot commented Sep 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 74.35%. Comparing base (7dd6541) to head (cf3b295).

Additional details and impacted files
@@                                  Coverage Diff                                  @@
##           avivg/blockifier/combine_charge_fee_w_enforce_fee     #833      +/-   ##
=====================================================================================
+ Coverage                                              70.43%   74.35%   +3.91%     
=====================================================================================
  Files                                                     88      358     +270     
  Lines                                                  11094    36238   +25144     
  Branches                                               11094    36238   +25144     
=====================================================================================
+ Hits                                                    7814    26943   +19129     
- Misses                                                  2891     7155    +4264     
- Partials                                                 389     2140    +1751     

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

@avivg-starkware avivg-starkware force-pushed the avivg/blockifier/combine_charge_fee_w_limit_steps_by_resources branch from bf61e1c to 843da5d Compare September 17, 2024 07:49
@avivg-starkware avivg-starkware changed the title chore(blockifier): have limit_steps_by_resources flag represent charge_fee flag and enforce_fee return value chore(blockifier): have limit_steps_by_resources flag represent charge_fee flag &enforce_fee ret val Sep 17, 2024
@avivg-starkware avivg-starkware force-pushed the avivg/blockifier/combine_charge_fee_w_limit_steps_by_resources branch from 843da5d to 6c9a32d Compare September 17, 2024 08:15
@avivg-starkware avivg-starkware force-pushed the avivg/blockifier/combine_charge_fee_w_enforce_fee branch from 4d232d6 to 7affb82 Compare September 17, 2024 08:16
Copy link

Benchmark movements:
tree_computation_flow performance improved 😺
tree_computation_flow time: [66.310 ms 66.396 ms 66.493 ms]
change: [-2.9615% -1.9610% -1.0823%] (p = 0.00 < 0.05)
Performance has improved.
Found 2 outliers among 100 measurements (2.00%)
1 (1.00%) high mild
1 (1.00%) high severe

@avivg-starkware avivg-starkware force-pushed the avivg/blockifier/combine_charge_fee_w_limit_steps_by_resources branch 2 times, most recently from 49d8c5c to 03a7b88 Compare September 17, 2024 12:14
@avivg-starkware avivg-starkware changed the title chore(blockifier): have limit_steps_by_resources flag represent charge_fee flag &enforce_fee ret val chore(blockifier): have limit_steps_by_resources flag rep charge_fee flag and enforce_fee ret val Sep 17, 2024
Copy link
Contributor

@meship-starkware meship-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 1 of 2 files at r1, 9 of 9 files at r2, all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @avivg-starkware)


crates/blockifier/src/blockifier/stateful_validator.rs line 118 at r2 (raw file):

        let tx_context = Arc::new(self.tx_executor.block_context.to_tx_context(tx));

        let limit_steps_by_resources =  tx.create_tx_info().enforce_fee(); //aviv: was true;

Remove all aviv comments.


crates/blockifier/src/concurrency/worker_logic.rs line 30 at r2 (raw file):

    TransactionInfoCreator,
};

Revert this change.

@avivg-starkware avivg-starkware force-pushed the avivg/blockifier/combine_charge_fee_w_limit_steps_by_resources branch 2 times, most recently from 8cbac73 to 3df10e1 Compare September 17, 2024 13:25
Copy link
Contributor

@meship-starkware meship-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 1 of 2 files at r3, all commit messages.
Reviewable status: 9 of 10 files reviewed, 1 unresolved discussion (waiting on @avivg-starkware)

@avivg-starkware avivg-starkware force-pushed the avivg/blockifier/combine_charge_fee_w_enforce_fee branch from 7affb82 to c1309cb Compare September 19, 2024 12:13
@avivg-starkware avivg-starkware force-pushed the avivg/blockifier/combine_charge_fee_w_limit_steps_by_resources branch from 3df10e1 to a4006fc Compare September 19, 2024 12:55
@avivg-starkware avivg-starkware force-pushed the avivg/blockifier/combine_charge_fee_w_enforce_fee branch from c1309cb to 7dd6541 Compare September 19, 2024 14:32
@avivg-starkware avivg-starkware force-pushed the avivg/blockifier/combine_charge_fee_w_limit_steps_by_resources branch from a4006fc to cf3b295 Compare September 19, 2024 14:40
Copy link
Contributor

@meship-starkware meship-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 11 of 14 files at r4, all commit messages.
Reviewable status: 11 of 14 files reviewed, 1 unresolved discussion (waiting on @avivg-starkware)

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.

2 participants