-
Notifications
You must be signed in to change notification settings - Fork 712
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8e40158
commit c37a5ee
Showing
22 changed files
with
366 additions
and
243 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// Copyright (c) 2022 MASSA LABS <info@massa.net> | ||
|
||
//! This file defines testing tools related to the config | ||
use massa_time::MassaTime; | ||
|
||
use crate::ExecutionConfig; | ||
|
||
/// Default value of ExecutionConfig used for tests | ||
impl Default for ExecutionConfig { | ||
fn default() -> Self { | ||
use massa_models::constants::default_testing::*; | ||
|
||
Self { | ||
readonly_queue_length: READONLY_QUEUE_LENGTH, | ||
max_final_events: MAX_FINAL_EVENTS, | ||
thread_count: THREAD_COUNT, | ||
cursor_delay: CURSOR_DELAY, | ||
clock_compensation: Default::default(), | ||
// reset genesis timestamp because we are in test mode that can take a while to process | ||
genesis_timestamp: MassaTime::now().expect("Impossible to reset the timestamp in test"), | ||
t0: 10.into(), | ||
} | ||
} | ||
} |
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
Binary file not shown.
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
// Copyright (c) 2022 MASSA LABS <info@massa.net> | ||
|
||
//TODO mod scenarios_mandatories; https://github.com/massalabs/massa/pull/2296 | ||
mod scenarios_mandatories; |
Oops, something went wrong.