From dea9d1934f5f9ac2fa7fc5a64d8048ea9e2bd99d Mon Sep 17 00:00:00 2001 From: Arni Hod Date: Mon, 11 Nov 2024 20:16:03 +0200 Subject: [PATCH] chore: fix default for versioned constants overrides --- 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, } } }