replay: temp disable overloaded relays

there is currently lots of chinese spam, probably since damus was
accepted in appstore.

temporary disabled damus, snort.social and nostr.info relays, and
added some less known german and swiss relays.
OFF0 2023-02-02 09:32:31 +01:00
parent 9e46342250
commit 46bd581950
Signed by: offbyn
GPG Key ID: 94A2F643C51F37FA
1 changed files with 9 additions and 5 deletions

View File

@ -6,12 +6,16 @@ import {dateTime, formatTime} from './timeutil.js';
// curl -H 'accept: application/nostr+json' https://relay.nostr.ch/
const pool = relayPool();
pool.addRelay('wss://relay.nostr.info', {read: true, write: true});
pool.addRelay('wss://nostr.openchain.fr', {read: true, write: true});
pool.addRelay('wss://relay.damus.io', {read: true, write: true});
pool.addRelay('wss://relay.snort.social', {read: true, write: true});
pool.addRelay('wss://eden.nostr.land', {read: true, write: true});
// pool.addRelay('wss://relay.nostr.info', {read: true, write: true});
// pool.addRelay('wss://relay.damus.io', {read: true, write: true});
// pool.addRelay('wss://relay.snort.social', {read: true, write: true});
pool.addRelay('wss://relay.nostr.ch', {read: true, write: true});
pool.addRelay('wss://nostr.openchain.fr', {read: true, write: true});
pool.addRelay('wss://eden.nostr.land', {read: true, write: true});
pool.addRelay('wss://nostr.einundzwanzig.space', {read: true, write: true});
pool.addRelay('wss://relay.nostrich.de', {read: true, write: true});
pool.addRelay('wss://nostr.cercatrova.me', {read: true, write: true});
function onEvent(evt, relay) {
switch (evt.kind) {