Skip to content
This repository has been archived by the owner on Apr 29, 2024. It is now read-only.

Commit

Permalink
radicle: Add new ash.radicle.garden seed node
Browse files Browse the repository at this point in the history
Add the new `ash` node as a preferred seed, to load balance.
  • Loading branch information
cloudhead committed Mar 26, 2024
1 parent 24bf282 commit 77076af
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
3 changes: 2 additions & 1 deletion radicle-httpd/src/api/v1/profile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
16 changes: 15 additions & 1 deletion radicle/src/node/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,17 @@ pub mod seeds {
.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.
pub static RADICLE_TEAM_NODE: Lazy<ConnectAddress> = Lazy::new(|| {
// SAFETY: `ConnectAddress` is known at compile time.
Expand Down Expand Up @@ -70,7 +81,10 @@ impl Network {
/// Public seeds for this network.
pub fn public_seeds(&self) -> Vec<ConnectAddress> {
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![],
}
}
Expand Down

0 comments on commit 77076af

Please sign in to comment.