Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove unused configuration and script files #1227

Merged
merged 4 commits into from
Sep 16, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove enable_forester config and cleanup references
sergeytimoshin committed Sep 16, 2024
commit bdd4a8d521ff943099cbbaecdf905d5e0cdbb5cf
2 changes: 1 addition & 1 deletion cli/src/commands/test-validator/index.ts
Original file line number Diff line number Diff line change
@@ -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,
}),
6 changes: 0 additions & 6 deletions forester/src/utils.rs
Original file line number Diff line number Diff line change
@@ -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,
}

@@ -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,
}
}
@@ -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")
3 changes: 0 additions & 3 deletions forester/tests/e2e_test.rs
Original file line number Diff line number Diff line change
@@ -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()
}))
@@ -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()
}))
@@ -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()
}))
1 change: 0 additions & 1 deletion forester/tests/test_utils.rs
Original file line number Diff line number Diff line change
@@ -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;