debug: add timeout to relay list query and temporarily add user's relays to hardcoded set to test relay list loading

This commit is contained in:
Gigi
2025-10-20 19:52:40 +02:00
parent 76e001aba4
commit 7b4ca50b16
2 changed files with 12 additions and 1 deletions

View File

@@ -16,6 +16,14 @@ export const RELAYS = [
'wss://nostr-pub.wellorder.net',
'wss://purplepag.es',
'wss://relay.primal.net',
'wss://proxy.nostr-relay.app/5d0d38afc49c4b84ca0da951a336affa18438efed302aeedfa92eb8b0d3fcb87'
'wss://proxy.nostr-relay.app/5d0d38afc49c4b84ca0da951a336affa18438efed302aeedfa92eb8b0d3fcb87',
// Temporary: Add some relays from user's relay list to test
'wss://filter.nostr.wine',
'wss://nostr.wine',
'wss://nostr.oxtr.dev',
'wss://atlas.nostr.land',
'wss://eden.nostr.land',
'wss://puravida.nostr.land',
'wss://premium.primal.net'
]

View File

@@ -22,6 +22,9 @@ export async function loadUserRelayList(
kinds: [10002],
authors: [pubkey]
})
// Add a small delay to ensure queries have time to complete
await new Promise(resolve => setTimeout(resolve, 1000))
console.log('[relayListService] Found', events.length, 'kind 10002 events')
if (events.length > 0) {