-
Notifications
You must be signed in to change notification settings - Fork 27
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
refactor(blockifier): make VersionedConstantsOverrides fields optional #1595
refactor(blockifier): make VersionedConstantsOverrides fields optional #1595
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. Join @ArniStarkware and the rest of your teammates on Graphite |
Artifacts upload triggered. View details here |
This acts well! As we want it to act. Code quote: "value": true |
Suggestion: let versioned_constants_overrides = VersionedConstantsOverrides {
validate_max_n_steps: Some(self.config.validate_max_n_steps),
max_recursion_depth: Some(self.config.max_recursion_depth),
..Default::default(),
}; |
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: 0 of 5 files reviewed, 2 unresolved discussions (waiting on @ayeletstarkware)
crates/blockifier/src/versioned_constants_test.rs
line 51 at r1 (raw file):
max_recursion_depth: Some(updated_max_recursion_depth), invoke_tx_max_n_steps: None, });
Test the default values are also not changed.
Suggestion:
let result = VersionedConstants::get_versioned_constants(VersionedConstantsOverrides {
validate_max_n_steps: Some(updated_validate_max_n_steps),
invoke_tx_max_n_steps: None,
..Default::default(),
});
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1595 +/- ##
==========================================
+ Coverage 40.10% 46.86% +6.76%
==========================================
Files 26 210 +184
Lines 1895 24749 +22854
Branches 1895 24749 +22854
==========================================
+ Hits 760 11599 +10839
- Misses 1100 12360 +11260
- Partials 35 790 +755 ☔ View full report in Codecov by Sentry. |
Lior thinks we don't need this. (He did not really look into it...) |
No description provided.