Skip to content

Commit

Permalink
Remove enable_forester config and cleanup references
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeytimoshin committed Sep 16, 2024
1 parent d6e2199 commit bdd4a8d
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 11 deletions.
2 changes: 1 addition & 1 deletion cli/src/commands/test-validator/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class SetupCommand extends Command {
}),
stop: Flags.boolean({
description:
"Stops the test validator and dependent processes. Use with --skip-indexer, --skip-prover, --skip-forester to keep specific services running.",
"Stops the test validator and dependent processes. Use with --skip-indexer, --skip-prover to keep specific services running.",
required: false,
default: false,
}),
Expand Down
6 changes: 0 additions & 6 deletions forester/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ pub struct LightValidatorConfig {
pub path: String,
pub enable_indexer: bool,
pub enable_prover: bool,
pub enable_forester: bool,
pub wait_time: u64,
}

Expand All @@ -21,7 +20,6 @@ impl Default for LightValidatorConfig {
path: "../cli/test_bin/run test-validator".to_string(),
enable_indexer: false,
enable_prover: false,
enable_forester: false,
wait_time: 35,
}
}
Expand All @@ -37,10 +35,6 @@ pub async fn spawn_validator(config: LightValidatorConfig) {
if !config.enable_prover {
path.push_str(" --skip-prover");
}
if !config.enable_forester {
path.push_str(" --skip-forester");
}

debug!("Starting validator with command: {}", path);

Command::new("sh")
Expand Down
3 changes: 0 additions & 3 deletions forester/tests/e2e_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ async fn test_epoch_monitor_with_test_indexer_and_1_forester() {
init(Some(LightValidatorConfig {
enable_indexer: false,
enable_prover: true,
enable_forester: false,
wait_time: 10,
..LightValidatorConfig::default()
}))
Expand Down Expand Up @@ -246,7 +245,6 @@ async fn test_epoch_monitor_with_2_foresters() {
init(Some(LightValidatorConfig {
enable_indexer: false,
enable_prover: true,
enable_forester: false,
wait_time: 10,
..LightValidatorConfig::default()
}))
Expand Down Expand Up @@ -549,7 +547,6 @@ async fn test_epoch_double_registration() {
init(Some(LightValidatorConfig {
enable_indexer: false,
enable_prover: true,
enable_forester: false,
wait_time: 10,
..LightValidatorConfig::default()
}))
Expand Down
1 change: 0 additions & 1 deletion forester/tests/test_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ pub async fn spawn_test_validator(config: Option<LightValidatorConfig>) {
let config = LightValidatorConfig {
enable_indexer: false,
enable_prover: false,
enable_forester: false,
..LightValidatorConfig::default()
};
spawn_validator(config).await;
Expand Down

0 comments on commit bdd4a8d

Please sign in to comment.