Merge pull request #1710 from warrickct/snode-fix

Fix snode return
pull/1711/head
Audric Ackermann 4 years ago committed by GitHub
commit a3e31fc251
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -281,9 +281,10 @@ export async function refreshRandomPool(forceRefresh = false): Promise<void> {
if (fetchedFromDb?.length) {
window?.log?.info(`refreshRandomPool: fetched from db ${fetchedFromDb.length} snodes.`);
randomSnodePool = fetchedFromDb;
if (randomSnodePool.length < minSnodePoolCount) {
window?.log?.warn('refreshRandomPool: not enough snodes in db, going to fetch from seed');
} else {
return;
}
} else {
window?.log?.warn('refreshRandomPool: did not find snodes in db.');

Loading…
Cancel
Save