Fix sampleRelays

This commit is contained in:
Jonathan Staab 2023-04-04 13:57:10 -05:00
parent 55ebd2afa1
commit 2d53752ea7

View File

@ -167,6 +167,8 @@ export const sampleRelays = (relays, scale = 1) => {
relays = relays.filter(r => {
if (pool.Meta.errors[r.url]) return false
if (pool.Meta.getStats(r.url).closed > Date.now() - 30_000) return false
return true
})
// Limit target relays