From 8b99e619f128f87cdc0996a867c90beed71d7932 Mon Sep 17 00:00:00 2001 From: Trisfald Date: Mon, 27 May 2024 12:06:59 +0200 Subject: [PATCH] Replace the old explorer telemetry endpoints with the new ones hosted by NearOne (#11156) --- nearcore/res/example-config-gc.json | 2 +- nearcore/res/example-config-no-gc.json | 2 +- nearcore/src/config.rs | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/nearcore/res/example-config-gc.json b/nearcore/res/example-config-gc.json index 97addfeebee..02cb442bd68 100644 --- a/nearcore/res/example-config-gc.json +++ b/nearcore/res/example-config-gc.json @@ -24,7 +24,7 @@ }, "telemetry": { "endpoints": [ - "https://explorer.mainnet.near.org/api/nodes" + "https://telemetry.nearone.org/nodes/mainnet" ] }, "network": { diff --git a/nearcore/res/example-config-no-gc.json b/nearcore/res/example-config-no-gc.json index 64b0ea07631..e341242373e 100644 --- a/nearcore/res/example-config-no-gc.json +++ b/nearcore/res/example-config-no-gc.json @@ -24,7 +24,7 @@ }, "telemetry": { "endpoints": [ - "https://explorer.mainnet.near.org/api/nodes" + "https://telemetry.nearone.org/nodes/mainnet" ] }, "network": { diff --git a/nearcore/src/config.rs b/nearcore/src/config.rs index eaaa4a0e2f6..2dae04144cf 100644 --- a/nearcore/src/config.rs +++ b/nearcore/src/config.rs @@ -105,7 +105,7 @@ pub const CONFIG_FILENAME: &str = "config.json"; pub const NODE_KEY_FILE: &str = "node_key.json"; pub const VALIDATOR_KEY_FILE: &str = "validator_key.json"; -pub const NETWORK_TELEMETRY_URL: &str = "https://explorer.{}.near.org/api/nodes"; +pub const NETWORK_TELEMETRY_URL: &str = "https://telemetry.nearone.org/nodes/{}"; fn default_doomslug_step_period() -> Duration { Duration::milliseconds(100) @@ -1506,7 +1506,7 @@ mod tests { assert_eq!(want_gc, config.gc); assert_eq!( - vec!["https://explorer.mainnet.near.org/api/nodes".to_string()], + vec!["https://telemetry.nearone.org/nodes/mainnet".to_string()], config.telemetry.endpoints ); }