Skip to content

Commit

Permalink
Update nomic.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
LeonoorsCryptoman authored Nov 21, 2024
1 parent e6804ce commit 2c32890
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bin/nomic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,7 @@ async fn configure_for_statesync(cfg_path: &PathBuf, rpc_servers: &[&str]) {

configure_node(cfg_path, |cfg| {
cfg["statesync"]["enable"] = toml_edit::value(true);
cfg["statesync"]["rpc_servers"] = toml_edit::value(rpc_servers.join(","));
cfg["statesync"]["rpc_servers"] = toml_edit::value("https://nomic-rpc.polkachu.com:443,https://nomic-rpc.polkachu.com:443");
cfg["statesync"]["trust_height"] = toml_edit::value(height);
cfg["statesync"]["trust_hash"] = toml_edit::value(hash.clone());
cfg["statesync"]["discovery_time"] = toml_edit::value("8s");
Expand Down Expand Up @@ -758,7 +758,7 @@ async fn get_bootstrap_state(rpc_servers: &[&str]) -> Result<(i64, String)> {
latest_heights.sort_unstable();
let latest_height = latest_heights[latest_heights.len() / 2] as u32;

let height = latest_height.checked_sub(1000).unwrap_or(1);
let height = latest_height.checked_sub(10000).unwrap_or(1);

// get block hash
let mut hash = None;
Expand Down

0 comments on commit 2c32890

Please sign in to comment.