From 77076af23c9cbbf124755f3737d523a77a5bb534 Mon Sep 17 00:00:00 2001 From: cloudhead Date: Mon, 25 Mar 2024 21:23:07 +0100 Subject: [PATCH] radicle: Add new `ash.radicle.garden` seed node Add the new `ash` node as a preferred seed, to load balance. --- radicle-httpd/src/api/v1/profile.rs | 3 ++- radicle/src/node/config.rs | 16 +++++++++++++++- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/radicle-httpd/src/api/v1/profile.rs b/radicle-httpd/src/api/v1/profile.rs index d45226f4a..58917fa44 100644 --- a/radicle-httpd/src/api/v1/profile.rs +++ b/radicle-httpd/src/api/v1/profile.rs @@ -73,7 +73,8 @@ mod routes { "config": { "publicExplorer": "https://app.radicle.xyz/nodes/$host/$rid$path", "preferredSeeds": [ - "z6MkrLMMsiPWUcNPHcRajuMi9mDfYckSoJyPwwnknocNYPm7@seed.radicle.garden:8776" + "z6MkrLMMsiPWUcNPHcRajuMi9mDfYckSoJyPwwnknocNYPm7@seed.radicle.garden:8776", + "z6Mkmqogy2qEM2ummccUthFEaaHvyYmYBYh3dbe9W4ebScxo@ash.radicle.garden:8776" ], "web": { "pinned": { "repositories": [] } }, "cli": { diff --git a/radicle/src/node/config.rs b/radicle/src/node/config.rs index 02ddd835c..a84f475b2 100644 --- a/radicle/src/node/config.rs +++ b/radicle/src/node/config.rs @@ -32,6 +32,17 @@ pub mod seeds { .into() }); + /// The radicle public `ash` seed node. + pub static RADICLE_ASH_NODE: Lazy = Lazy::new(|| { + // SAFETY: `ConnectAddress` is known at compile time. + #[allow(clippy::unwrap_used)] + PeerAddr::from_str( + "z6Mkmqogy2qEM2ummccUthFEaaHvyYmYBYh3dbe9W4ebScxo@ash.radicle.garden:8776", + ) + .unwrap() + .into() + }); + /// The radicle team node. pub static RADICLE_TEAM_NODE: Lazy = Lazy::new(|| { // SAFETY: `ConnectAddress` is known at compile time. @@ -70,7 +81,10 @@ impl Network { /// Public seeds for this network. pub fn public_seeds(&self) -> Vec { match self { - Self::Main => vec![seeds::RADICLE_COMMUNITY_NODE.clone()], + Self::Main => vec![ + seeds::RADICLE_COMMUNITY_NODE.clone(), + seeds::RADICLE_ASH_NODE.clone(), + ], Self::Test => vec![], } }