-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(katana): rename starknet config to execution config (#2557)
Showing
9 changed files
with
54 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
pub const MAX_RECURSION_DEPTH: usize = 1000; | ||
|
||
pub const DEFAULT_INVOCATION_MAX_STEPS: u32 = 10_000_000; | ||
pub const DEFAULT_VALIDATION_MAX_STEPS: u32 = 1_000_000; | ||
|
||
#[derive(Debug, Clone)] | ||
pub struct ExecutionConfig { | ||
pub invocation_max_steps: u32, | ||
pub validation_max_steps: u32, | ||
pub max_recursion_depth: usize, | ||
} | ||
|
||
impl std::default::Default for ExecutionConfig { | ||
fn default() -> Self { | ||
Self { | ||
max_recursion_depth: MAX_RECURSION_DEPTH, | ||
invocation_max_steps: DEFAULT_INVOCATION_MAX_STEPS, | ||
validation_max_steps: DEFAULT_VALIDATION_MAX_STEPS, | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters