Skip to content

Commit

Permalink
Rename back_sync to back_sync_enabled to better reflect its boole…
Browse files Browse the repository at this point in the history
…an nature
  • Loading branch information
Tumas committed Dec 12, 2024
1 parent 8159e3c commit 58a2730
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions grandine/src/grandine_args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -340,8 +340,8 @@ struct BeaconNodeOptions {

/// Enable syncing historical data
/// [default: disabled]
#[clap(long)]
back_sync: bool,
#[clap(long = "back_sync")]
back_sync_enabled: bool,

/// Collect Prometheus metrics
#[clap(long)]
Expand Down Expand Up @@ -899,7 +899,7 @@ impl GrandineArgs {
jwt_id,
jwt_secret,
jwt_version,
back_sync,
back_sync_enabled,
metrics,
metrics_address,
metrics_port,
Expand Down Expand Up @@ -1236,7 +1236,7 @@ impl GrandineArgs {
genesis_state_download_url,
checkpoint_sync_url,
force_checkpoint_sync,
back_sync,
back_sync_enabled,
eth1_rpc_urls,
data_dir: directories.data_dir.clone().unwrap_or_default(),
validators,
Expand Down
6 changes: 3 additions & 3 deletions grandine/src/grandine_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ pub struct GrandineConfig {
pub genesis_state_download_url: Option<RedactingUrl>,
pub checkpoint_sync_url: Option<RedactingUrl>,
pub force_checkpoint_sync: bool,
pub back_sync: bool,
pub back_sync_enabled: bool,
pub eth1_rpc_urls: Vec<RedactingUrl>,
pub data_dir: PathBuf,
pub validators: Option<Validators>,
Expand Down Expand Up @@ -73,7 +73,7 @@ impl GrandineConfig {
let Self {
predefined_network,
chain_config,
back_sync,
back_sync_enabled,
eth1_rpc_urls,
data_dir,
graffiti,
Expand Down Expand Up @@ -161,7 +161,7 @@ impl GrandineConfig {
}

info!("suggested fee recipient: {suggested_fee_recipient}");
info!("back sync enabled: {back_sync}");
info!("back sync enabled: {back_sync_enabled}");

if *use_validator_key_cache {
info!("using validator key cache");
Expand Down
10 changes: 5 additions & 5 deletions grandine/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ struct Context {
validator_config: Arc<ValidatorConfig>,
checkpoint_sync_url: Option<RedactingUrl>,
force_checkpoint_sync: bool,
back_sync: bool,
back_sync_enabled: bool,
eth1_rpc_urls: Vec<RedactingUrl>,
network_config: NetworkConfig,
storage_config: StorageConfig,
Expand Down Expand Up @@ -168,7 +168,7 @@ impl Context {
validator_config,
checkpoint_sync_url,
force_checkpoint_sync,
back_sync,
back_sync_enabled,
eth1_rpc_urls,
network_config,
storage_config,
Expand Down Expand Up @@ -293,7 +293,7 @@ impl Context {
signer,
slasher_config,
http_api_config,
back_sync,
back_sync_enabled,
metrics_config,
track_liveness,
detect_doppelgangers,
Expand Down Expand Up @@ -354,7 +354,7 @@ fn try_main() -> Result<()> {
genesis_state_download_url,
checkpoint_sync_url,
force_checkpoint_sync,
back_sync,
back_sync_enabled,
eth1_rpc_urls,
data_dir,
validators,
Expand Down Expand Up @@ -516,7 +516,7 @@ fn try_main() -> Result<()> {
validator_config,
checkpoint_sync_url,
force_checkpoint_sync,
back_sync,
back_sync_enabled,
eth1_rpc_urls,
network_config,
storage_config,
Expand Down

0 comments on commit 58a2730

Please sign in to comment.