-
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): alternate use of casm and native depending on tracked_resource #1699
chore(blockifier): alternate use of casm and native depending on tracked_resource #1699
Conversation
Artifacts upload triggered. View details here |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1699 +/- ##
===========================================
+ Coverage 40.10% 69.09% +28.99%
===========================================
Files 26 100 +74
Lines 1895 13449 +11554
Branches 1895 13449 +11554
===========================================
+ Hits 760 9293 +8533
- Misses 1100 3754 +2654
- Partials 35 402 +367 ☔ View full report in Codecov by Sentry. |
92137be
to
a5fba16
Compare
Artifacts upload triggered. View details here |
a5fba16
to
0cf8cda
Compare
Artifacts upload triggered. View details here |
0cf8cda
to
5e6e0de
Compare
Artifacts upload triggered. View details here |
5e6e0de
to
b421a99
Compare
Artifacts upload triggered. View details here |
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 2 files at r1, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @avivg-starkware)
crates/blockifier/src/execution/execution_utils.rs
line 145 at r1 (raw file):
#[cfg(feature = "cairo_native")] ContractClass::V1Native(contract_class) => { if context.tracked_resource_stack.last() == Some(&TrackedResource::CairoSteps) {
Please add a doc explaining this behaviour.
Code quote:
if context.tracked_resource_stack.last() == Some(&TrackedResource::CairoSteps) {
b421a99
to
a216985
Compare
Previously, noaov1 (Noa Oved) wrote…
added, WDYT? |
Artifacts upload triggered. View details here |
a216985
to
0ca5873
Compare
Artifacts upload triggered. View details here |
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 2 files at r1, 1 of 1 files at r2, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @noaov1)
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, 1 unresolved discussion (waiting on @avivg-starkware)
crates/blockifier/src/execution/execution_utils.rs
line 147 at r2 (raw file):
if context.tracked_resource_stack.last() == Some(&TrackedResource::CairoSteps) { // if CairoSteps are tracked instead of SierraGas, use Casm for all following // calling txs.
Suggestion:
// We cannot run native with cairo steps as the tracked resources (it's a vm resouorce).
if context.tracked_resource_stack.last() == Some(&TrackedResource::CairoSteps) {
0ca5873
to
5f0517d
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, 1 unresolved discussion (waiting on @noaov1)
crates/blockifier/src/execution/execution_utils.rs
line 147 at r2 (raw file):
if context.tracked_resource_stack.last() == Some(&TrackedResource::CairoSteps) { // if CairoSteps are tracked instead of SierraGas, use Casm for all following // calling txs.
Done.
Artifacts upload triggered. View details here |
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 r3, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @noaov1)
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 r3, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @avivg-starkware)
No description provided.