radicle: Add new `ash.radicle.garden` seed node

Add the new `ash` node as a preferred seed, to load balance.
This commit is contained in:
cloudhead 2024-03-25 21:23:07 +01:00
parent 24bf2826cc
commit 77076af23c
No known key found for this signature in database
2 changed files with 17 additions and 2 deletions

View File

@ -73,7 +73,8 @@ mod routes {
"config": { "config": {
"publicExplorer": "https://app.radicle.xyz/nodes/$host/$rid$path", "publicExplorer": "https://app.radicle.xyz/nodes/$host/$rid$path",
"preferredSeeds": [ "preferredSeeds": [
"z6MkrLMMsiPWUcNPHcRajuMi9mDfYckSoJyPwwnknocNYPm7@seed.radicle.garden:8776" "z6MkrLMMsiPWUcNPHcRajuMi9mDfYckSoJyPwwnknocNYPm7@seed.radicle.garden:8776",
"z6Mkmqogy2qEM2ummccUthFEaaHvyYmYBYh3dbe9W4ebScxo@ash.radicle.garden:8776"
], ],
"web": { "pinned": { "repositories": [] } }, "web": { "pinned": { "repositories": [] } },
"cli": { "cli": {

View File

@ -32,6 +32,17 @@ pub mod seeds {
.into() .into()
}); });
/// The radicle public `ash` seed node.
pub static RADICLE_ASH_NODE: Lazy<ConnectAddress> = 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. /// The radicle team node.
pub static RADICLE_TEAM_NODE: Lazy<ConnectAddress> = Lazy::new(|| { pub static RADICLE_TEAM_NODE: Lazy<ConnectAddress> = Lazy::new(|| {
// SAFETY: `ConnectAddress` is known at compile time. // SAFETY: `ConnectAddress` is known at compile time.
@ -70,7 +81,10 @@ impl Network {
/// Public seeds for this network. /// Public seeds for this network.
pub fn public_seeds(&self) -> Vec<ConnectAddress> { pub fn public_seeds(&self) -> Vec<ConnectAddress> {
match self { 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![], Self::Test => vec![],
} }
} }