Skip to content

Commit

Permalink
chore: fix default for versioned constants overrides
Browse files Browse the repository at this point in the history
  • Loading branch information
ArniStarkware committed Nov 11, 2024
1 parent 85ebfd1 commit dea9d19
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/blockifier/src/versioned_constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -847,12 +847,12 @@ pub struct VersionedConstantsOverrides {
}

impl Default for VersionedConstantsOverrides {
// TODO: update the default values once the actual values are known.
fn default() -> Self {
let latest_versioned_constants = VersionedConstants::latest_constants();
Self {
validate_max_n_steps: 1000000,
max_recursion_depth: 50,
invoke_tx_max_n_steps: 10000000,
validate_max_n_steps: latest_versioned_constants.validate_max_n_steps,
max_recursion_depth: latest_versioned_constants.max_recursion_depth,
invoke_tx_max_n_steps: latest_versioned_constants.invoke_tx_max_n_steps,
}
}
}
Expand Down

0 comments on commit dea9d19

Please sign in to comment.