Skip to content

Commit 1a08e6f

Browse files
Remove duplicate sync_tolerance_epochs config (#7109)
Delete duplicate sync tolerance epoch config in the HTTP API which is unused. We introduced the `sync-tolerance-epoch` flag in this PR: - #7030 Then refined it in this PR: - #7044 Somewhere in the merge of `release-v7.0.0` into `unstable`, the config from the original PR which had been deleted came back. I think I resolved these conflicts, so my bad.
1 parent 1916a2a commit 1a08e6f

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

beacon_node/http_api/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,6 @@ pub struct Config {
149149
#[serde(with = "eth2::types::serde_status_code")]
150150
pub duplicate_block_status_code: StatusCode,
151151
pub target_peers: usize,
152-
pub sync_tolerance_epochs: Option<u64>,
153152
}
154153

155154
impl Default for Config {
@@ -165,7 +164,6 @@ impl Default for Config {
165164
enable_beacon_processor: true,
166165
duplicate_block_status_code: StatusCode::ACCEPTED,
167166
target_peers: 100,
168-
sync_tolerance_epochs: None,
169167
}
170168
}
171169
}

beacon_node/src/config.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use beacon_chain::graffiti_calculator::GraffitiOrigin;
88
use beacon_chain::TrustedSetup;
99
use clap::{parser::ValueSource, ArgMatches, Id};
1010
use clap_utils::flags::DISABLE_MALLOC_TUNING_FLAG;
11-
use clap_utils::{parse_flag, parse_optional, parse_required};
11+
use clap_utils::{parse_flag, parse_required};
1212
use client::{ClientConfig, ClientGenesis};
1313
use directory::{DEFAULT_BEACON_NODE_DIR, DEFAULT_NETWORK_DIR, DEFAULT_ROOT_DIR};
1414
use environment::RuntimeContext;
@@ -174,9 +174,6 @@ pub fn get_config<E: EthSpec>(
174174

175175
client_config.http_api.duplicate_block_status_code =
176176
parse_required(cli_args, "http-duplicate-block-status")?;
177-
178-
client_config.http_api.sync_tolerance_epochs =
179-
parse_optional(cli_args, "sync-tolerance-epochs")?;
180177
}
181178

182179
if cli_args.get_flag("light-client-server") {

0 commit comments

Comments
 (0)