updated default relay list

This commit is contained in:
Ren Amamiya 2023-04-19 21:30:43 +07:00
parent e0bad7df70
commit a3ca2ef548
3 changed files with 9 additions and 13 deletions

View File

@ -60,11 +60,7 @@ export default function Page({ params }: { params: { privkey: string } }) {
},
undefined,
() => {
if (eose.current > 5) {
setDone(true);
} else {
eose.current += 1;
}
setDone(true);
},
{
unsubscribeOnEose: true,

View File

@ -119,11 +119,7 @@ export default function Page() {
},
undefined,
() => {
if (eose.current > 5) {
router.replace('/nostr/newsfeed/following');
} else {
eose.current += 1;
}
router.replace('/nostr/newsfeed/following');
},
{
unsubscribeOnEose: true,

View File

@ -5,23 +5,27 @@ import { createContext, useMemo } from 'react';
export const RelayContext = createContext({});
/*
const relays = [
'wss://relay.damus.io',
'wss://nostr-pub.wellorder.net',
//'wss://nostr.bongbong.com',
'wss://nostr.bongbong.com',
'wss://nostr.zebedee.cloud',
'wss://nostr.fmt.wiz.biz',
'wss://relay.snort.social',
'wss://offchain.pub',
'wss://relay.current.fyi',
'wss://nostr.bitcoiner.social',
//'wss://relay.nostr.info',
//'wss://nostr-01.dorafactory.org',
'wss://relay.nostr.info',
'wss://nostr-01.dorafactory.org',
'wss://nostr.zhongwen.world',
'wss://nostro.cc',
'wss://relay.nostr.net.in',
'wss://nos.lol',
];
*/
const relays = ['wss://welcome.nostr.wine', 'wss://relay.nostr.band', 'wss://nostr.mutinywallet.com'];
export default function RelayProvider({ children }: { children: React.ReactNode }) {
const pool = useMemo(() => new RelayPool(relays, { useEventCache: false, logSubscriptions: false }), []);