Default to relay.goblin.st (strfry) instead of nrelay.us-ea.st
The Goblin relay moved to strfry at relay.goblin.st; point the wallet's default DM relay set there (public relays damus/nos.lol stay as redundancy).
This commit is contained in:
+2
-2
@@ -396,10 +396,10 @@ mod tests {
|
||||
fn parses_well_known() {
|
||||
let body = r#"{
|
||||
"names": {"ada": "91cf9dbbea5e6511fd2bbb190b112055ee4131c5d2bbb9faedf3ee8cbeac0d05"},
|
||||
"relays": {"91cf9dbbea5e6511fd2bbb190b112055ee4131c5d2bbb9faedf3ee8cbeac0d05": ["wss://nrelay.us-ea.st"]}
|
||||
"relays": {"91cf9dbbea5e6511fd2bbb190b112055ee4131c5d2bbb9faedf3ee8cbeac0d05": ["wss://relay.goblin.st"]}
|
||||
}"#;
|
||||
let res = parse_well_known(body, "ada").unwrap();
|
||||
assert_eq!(res.relays, vec!["wss://nrelay.us-ea.st".to_string()]);
|
||||
assert_eq!(res.relays, vec!["wss://relay.goblin.st".to_string()]);
|
||||
assert!(parse_well_known(body, "bob").is_none());
|
||||
assert!(parse_well_known("not json", "ada").is_none());
|
||||
}
|
||||
|
||||
+3
-3
@@ -16,7 +16,7 @@
|
||||
|
||||
/// Default DM relays: the Goblin relay plus large public relays for redundancy.
|
||||
pub const DEFAULT_RELAYS: &[&str] = &[
|
||||
"wss://nrelay.us-ea.st",
|
||||
"wss://relay.goblin.st",
|
||||
"wss://relay.damus.io",
|
||||
"wss://nos.lol",
|
||||
];
|
||||
@@ -55,8 +55,8 @@ mod tests {
|
||||
#[test]
|
||||
fn normalizes_relay_urls() {
|
||||
assert_eq!(
|
||||
normalize_relay_url("nrelay.us-ea.st"),
|
||||
Some("wss://nrelay.us-ea.st".to_string())
|
||||
normalize_relay_url("relay.goblin.st"),
|
||||
Some("wss://relay.goblin.st".to_string())
|
||||
);
|
||||
assert_eq!(
|
||||
normalize_relay_url("wss://relay.damus.io/"),
|
||||
|
||||
Reference in New Issue
Block a user