mirror of
https://github.com/lumehq/lume.git
synced 2025-09-20 14:01:15 +02:00
updated default relay list
This commit is contained in:
@@ -60,11 +60,7 @@ export default function Page({ params }: { params: { privkey: string } }) {
|
|||||||
},
|
},
|
||||||
undefined,
|
undefined,
|
||||||
() => {
|
() => {
|
||||||
if (eose.current > 5) {
|
setDone(true);
|
||||||
setDone(true);
|
|
||||||
} else {
|
|
||||||
eose.current += 1;
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
unsubscribeOnEose: true,
|
unsubscribeOnEose: true,
|
||||||
|
@@ -119,11 +119,7 @@ export default function Page() {
|
|||||||
},
|
},
|
||||||
undefined,
|
undefined,
|
||||||
() => {
|
() => {
|
||||||
if (eose.current > 5) {
|
router.replace('/nostr/newsfeed/following');
|
||||||
router.replace('/nostr/newsfeed/following');
|
|
||||||
} else {
|
|
||||||
eose.current += 1;
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
unsubscribeOnEose: true,
|
unsubscribeOnEose: true,
|
||||||
|
@@ -5,23 +5,27 @@ import { createContext, useMemo } from 'react';
|
|||||||
|
|
||||||
export const RelayContext = createContext({});
|
export const RelayContext = createContext({});
|
||||||
|
|
||||||
|
/*
|
||||||
const relays = [
|
const relays = [
|
||||||
'wss://relay.damus.io',
|
'wss://relay.damus.io',
|
||||||
'wss://nostr-pub.wellorder.net',
|
'wss://nostr-pub.wellorder.net',
|
||||||
//'wss://nostr.bongbong.com',
|
'wss://nostr.bongbong.com',
|
||||||
'wss://nostr.zebedee.cloud',
|
'wss://nostr.zebedee.cloud',
|
||||||
'wss://nostr.fmt.wiz.biz',
|
'wss://nostr.fmt.wiz.biz',
|
||||||
'wss://relay.snort.social',
|
'wss://relay.snort.social',
|
||||||
'wss://offchain.pub',
|
'wss://offchain.pub',
|
||||||
'wss://relay.current.fyi',
|
'wss://relay.current.fyi',
|
||||||
'wss://nostr.bitcoiner.social',
|
'wss://nostr.bitcoiner.social',
|
||||||
//'wss://relay.nostr.info',
|
'wss://relay.nostr.info',
|
||||||
//'wss://nostr-01.dorafactory.org',
|
'wss://nostr-01.dorafactory.org',
|
||||||
'wss://nostr.zhongwen.world',
|
'wss://nostr.zhongwen.world',
|
||||||
'wss://nostro.cc',
|
'wss://nostro.cc',
|
||||||
'wss://relay.nostr.net.in',
|
'wss://relay.nostr.net.in',
|
||||||
'wss://nos.lol',
|
'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 }) {
|
export default function RelayProvider({ children }: { children: React.ReactNode }) {
|
||||||
const pool = useMemo(() => new RelayPool(relays, { useEventCache: false, logSubscriptions: false }), []);
|
const pool = useMemo(() => new RelayPool(relays, { useEventCache: false, logSubscriptions: false }), []);
|
||||||
|
Reference in New Issue
Block a user