-
Notifications
You must be signed in to change notification settings - Fork 83
/
Copy pathrelays.js
105 lines (100 loc) · 2.91 KB
/
relays.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
export const relays = [
'wss://relay.mynostr.id',
'wss://paid.nostrified.org',
'wss://nostr.21sats.net',
'wss://nostr.herci.one',
'wss://lightningrelay.com',
'wss://nostr.p2sh.co',
'wss://nostr.lnprivate.network',
'wss://nostr.bongbong.com',
'wss://nostr-pub.wellorder.net',
'wss://nostr.cercatrova.me',
'wss://nostr.massmux.com',
'wss://relayer.fiatjaf.com',
'wss://nostr.rocks',
'wss://rsslay.fiatjaf.com',
'wss://freedom-relay.herokuapp.com/ws',
'wss://nostr-relay.freeberty.net',
'wss://offchain.pub',
'wss://nostr.nodeofsven.com',
'wss://nostr-relay.wlvs.space',
'wss://nostr.onsats.org',
'wss://nostr-relay.untethr.me',
'wss://nostr.semisol.dev',
'wss://nostr-pub.semisol.dev',
'ws://jgqaglhautb4k6e6i2g34jakxiemqp6z4wynlirltuukgkft2xuglmqd.onion',
'wss://nostr-verified.wellorder.net',
'wss://nostr.drss.io',
'wss://nostr.unknown.place',
'wss://relay.damus.io',
'wss://nostr.openchain.fr',
'wss://nostr.delo.software',
'wss://relay.nostr.info',
'wss://relay.minds.com/nostr/v1/ws',
'wss://nostr.zaprite.io',
'wss://nostr.oxtr.dev',
'wss://nostr.ono.re',
'wss://relay.grunch.dev',
'wss://relay.cynsar.foundation',
'wss://nostr.sandwich.farm',
'wss://relay.nostr.ch',
'wss://nostr.fmt.wiz.biz',
'wss://nostr.einundzwanzig.space',
'wss://nostr-relay.nonce.academy',
'wss://nostr.nymsrelay.com',
'wss://nostr.slothy.win',
'wss://relay.stoner.com',
'wss://nostr.yael.at',
'wss://jiggytom.ddns.net',
'wss://nostr.mom',
'wss://nostr.walletofsatoshi.com',
'wss://nostr-relay.digitalmob.ro',
'wss://nostr-2.zebedee.cloud',
'wss://nostr.zebedee.cloud',
'wss://nostr.f44.dev',
'wss://nostr.orangepill.dev',
'wss://nostr.coollamer.com',
'wss://nostr-relay.alekberg.net',
'wss://nostr.developer.li',
'wss://relay.nostr.ro',
'wss://nostr.chaker.net',
'wss://relay.nostr.nu',
'wss://relay.taxi',
'wss://knostr.neutrine.com',
'wss://no-str.org',
'wss://relay.cryptocculture.com',
'wss://nostr.blockchaincaffe.it',
'wss://relay.nostrich.de',
'wss://relay.nostr.scot',
'wss://relay.nosphr.com',
'wss://relay.nostr-latam.link',
'wss://nostr.coinsamba.com.br',
'wss://deconomy-netser.ddns.net:2121',
'wss://relay.nostr.wf',
'wss://nostr.middling.mydns.jp',
'wss://relay.nostr.or.jp',
'wss://nostr.yuv.al',
'wss://nostr.beta3.dev',
'wss://at.nostrworks.com',
'wss://nostrsatva.net',
'wss://nostr.xmr.rocks',
'wss://nostr.portemonero.com',
'wss://nostr.retroware.run.place'
]
shuffle(relays)
function shuffle(array) {
let currentIndex = array.length,
randomIndex
// While there remain elements to shuffle.
while (currentIndex != 0) {
// Pick a remaining element.
randomIndex = Math.floor(Math.random() * currentIndex)
currentIndex--
// And swap it with the current element.
;[array[currentIndex], array[randomIndex]] = [
array[randomIndex],
array[currentIndex]
]
}
return array
}