mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-03-17 21:32:56 +01:00
sdk: increase sanity threshold of relay lists.
This commit is contained in:
parent
e7432baeba
commit
48ce669a3d
@ -50,7 +50,7 @@ func (sys *System) FetchOutboxRelays(ctx context.Context, pubkey string, n int)
|
||||
// the relays they intend to receive notifications from.
|
||||
func (sys *System) FetchInboxRelays(ctx context.Context, pubkey string, n int) []string {
|
||||
rl := sys.FetchRelayList(ctx, pubkey)
|
||||
if len(rl.Items) == 0 || len(rl.Items) > 7 {
|
||||
if len(rl.Items) == 0 || len(rl.Items) > 10 {
|
||||
return []string{"wss://relay.damus.io", "wss://nos.lol"}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user