mirror of
https://github.com/PR0M3TH3AN/bitlogin.git
synced 2026-10-27 08:31:21 +00:00
Expand built-in vault/discovery relay lists for redundancy
relay.nostr.band (shared by both lists) is currently unreachable, and publishAndVerify() enforces a fixed minAcks/minReadbacks=2 floor regardless of relay count -- so a 3-relay vault list had zero margin the moment one relay went down, surfacing as "Registration did not reach the required relay acknowledgement and readback quorum." Add nostr.wine and relay.snort.social to the vault list, and nostr-pub.wellorder.net to discovery, so losing any single relay no longer risks failing registration. Co-Authored-By: Claude Sonnet 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01DY9UMTuF43Ekc2U4E1eDwX
This commit is contained in:
1 parent
a4e9b1d2ae
commit
681f622ef8
1 file changed
+11
-2
@@ -17,15 +17,24 @@ import { D_TAG_BOOTSTRAP_RELAYS, KIND_APP_DATA } from "./kinds.js";
|
||||
export const MAINTAINER_PUBLIC_KEY_HEX =
|
||||
"0000000000000000000000000000000000000000000000000000000000000000".slice(0, 64);
|
||||
|
||||
// §15.6's publishAndVerify enforces a fixed floor (minAcks/minReadbacks = 2)
|
||||
// regardless of how many relays are configured, so this list needs enough
|
||||
// healthy redundancy that losing any one relay still clears that floor
|
||||
// comfortably -- a 3-relay list has zero margin the moment one relay is
|
||||
// unreachable, which is exactly what "add more vault relays" (the
|
||||
// registration failure message) is telling operators to fix.
|
||||
export const BUILTIN_VAULT_RELAYS: readonly string[] = [
|
||||
"wss://relay.damus.io",
|
||||
"wss://nos.lol",
|
||||
"wss://relay.nostr.band"
|
||||
"wss://relay.nostr.band",
|
||||
"wss://nostr.wine",
|
||||
"wss://relay.snort.social"
|
||||
];
|
||||
|
||||
export const BUILTIN_DISCOVERY_RELAYS: readonly string[] = [
|
||||
"wss://purplepag.es",
|
||||
"wss://relay.nostr.band"
|
||||
"wss://relay.nostr.band",
|
||||
"wss://nostr-pub.wellorder.net"
|
||||
];
|
||||
|
||||
/** Well-known static HTTPS fallback URLs for the signed relay-list document (§19.1). */
|
||||
|
||||
Reference in new issue
Block a user