From 343413355fc6d6daf30c6e77f95a94bbe1fa8a8d Mon Sep 17 00:00:00 2001 From: alex Date: Sat, 10 Dec 2022 23:22:24 +0100 Subject: [PATCH] pool: add relay.nostr.ch this is another relay, so we have two to play with. this one is running on the same machine where live nostrweb is hosted at. at the moment, relay is running nostr-rs-relay v0.7.2: $ curl -H 'accept: application/nostr+json' https://relay.nostr.ch/ { "id": "wss://relay.nostr.ch/", "name": "a nostr relay", "description": "just another nostr relay", "supported_nips": [ 1, 2, 9, 11, 12, 15, 16, 20, 22, 26 ], "software": "https://git.sr.ht/~gheartsfield/nostr-rs-relay", "version": "0.7.2" } --- src/main.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.js b/src/main.js index e42245c..5d5baf9 100644 --- a/src/main.js +++ b/src/main.js @@ -1,11 +1,12 @@ import {relayPool, generatePrivateKey, getPublicKey, signEvent} from 'nostr-tools'; import {elem, parseTextContent} from './domutil.js'; import {dateTime, formatTime} from './timeutil.js'; -// curl -H 'accept: application/nostr+json' https://nostr.x1ddos.ch +// 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://relay.damus.io', {read: true, write: true}); pool.addRelay('wss://nostr.x1ddos.ch', {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://nostr.bitcoiner.social/', {read: true, write: true}); // read only