Skip to content

Commit

Permalink
Replace the old explorer telemetry endpoints with the new ones hosted…
Browse files Browse the repository at this point in the history
… by NearOne (#11156)
  • Loading branch information
Trisfald committed May 27, 2024
1 parent a8ff1d2 commit 8b99e61
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion nearcore/res/example-config-gc.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
},
"telemetry": {
"endpoints": [
"https://explorer.mainnet.near.org/api/nodes"
"https://telemetry.nearone.org/nodes/mainnet"
]
},
"network": {
Expand Down
2 changes: 1 addition & 1 deletion nearcore/res/example-config-no-gc.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
},
"telemetry": {
"endpoints": [
"https://explorer.mainnet.near.org/api/nodes"
"https://telemetry.nearone.org/nodes/mainnet"
]
},
"network": {
Expand Down
4 changes: 2 additions & 2 deletions nearcore/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
);
}
Expand Down

0 comments on commit 8b99e61

Please sign in to comment.