-
Notifications
You must be signed in to change notification settings - Fork 52
chore(blockifier): limit l1 gas resources #5207
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
Conversation
bf5aaf9
to
aa3aa62
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 3 of 3 files at r1, all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @dorimedini-starkware and @Yoni-Starkware)
894a2ae
to
04c7de6
Compare
aa3aa62
to
85cd108
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 1 of 1 files at r2, all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @dorimedini-starkware and @Yoni-Starkware)
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 2 of 3 files at r1, 1 of 1 files at r2, all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @Yoni-Starkware)
crates/blockifier/src/transaction/transaction_execution.rs
line 165 at r2 (raw file):
// Enforce resource bounds. FeeCheckReport::check_all_gas_amounts_within_bounds(&l1_handler_bounds, &receipt.gas)?;
what happens if this fails? tx is rejected, right? no reverts on L1 handlers?
Code quote:
FeeCheckReport::check_all_gas_amounts_within_bounds(&l1_handler_bounds, &receipt.gas)?;
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 r2, all commit messages.
Reviewable status: all files reviewed, 3 unresolved discussions (waiting on @noaov1)
crates/blockifier/src/transaction/transaction_execution.rs
line 165 at r2 (raw file):
Previously, dorimedini-starkware wrote…
what happens if this fails? tx is rejected, right? no reverts on L1 handlers?
Right
a discussion (no related file):
Wait for the Py side
crates/blockifier/src/fee/fee_checks.rs
line 127 at r2 (raw file):
} pub fn check_all_gas_amounts_within_bounds(
Just moved?
crates/blockifier/src/transaction/transaction_execution.rs
line 157 at r2 (raw file):
let execute_call_info = self.run_execute(state, &mut context, &mut remaining_gas)?; let l1_handler_payload_size = self.payload_size(); let receipt = TransactionReceipt::from_l1_handler(
Are you fixing this in another PR?
Code quote:
receipt = TransactionReceipt::from_l1_handle
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 @Yoni-Starkware)
crates/blockifier/src/fee/fee_checks.rs
line 127 at r2 (raw file):
Previously, Yoni-Starkware (Yoni) wrote…
Just moved?
And it became public, which is why it was moved.
crates/blockifier/src/transaction/transaction_execution.rs
line 157 at r2 (raw file):
Previously, Yoni-Starkware (Yoni) wrote…
Are you fixing this in another PR?
Fixing what? Do you mean this?
(preliminary PR).
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 @noaov1 and @Yoni-Starkware)
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 @noaov1 and @Yoni-Starkware)
85cd108
to
611ab10
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.
Reviewable status: all files reviewed, 3 unresolved discussions (waiting on @Yoni-Starkware)
a discussion (no related file):
Previously, Yoni-Starkware (Yoni) wrote…
Wait for the Py side
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.
Reviewable status: all files reviewed, 3 unresolved discussions (waiting on @Yoni-Starkware)
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 2 of 3 files at r1.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @noaov1)
No description provided.