From 2190f0102c31ca3269a530303dd27da6c5db41da Mon Sep 17 00:00:00 2001 From: Arnon Hod Date: Tue, 12 Nov 2024 09:53:15 +0200 Subject: [PATCH] chore: fix default for versioned constants overrides (#1962) --- crates/blockifier/src/versioned_constants.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/blockifier/src/versioned_constants.rs b/crates/blockifier/src/versioned_constants.rs index ae3ffe5c1d..0e1d9c1420 100644 --- a/crates/blockifier/src/versioned_constants.rs +++ b/crates/blockifier/src/versioned_constants.rs @@ -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, } } }