Update mining pools before loading the disk cache since we may need to wipe that cache

This commit is contained in:
nymkappa 2023-03-03 17:29:46 +09:00
parent ad7d3d97de
commit d76d14253a
No known key found for this signature in database
GPG Key ID: E155910B16E8BD04

View File

@ -113,6 +113,7 @@ class Server {
this.setUpWebsocketHandling();
await poolsUpdater.updatePoolsJson(); // Needs to be done before loading the disk cache because we sometimes wipe it
await syncAssets.syncAssets$();
if (config.MEMPOOL.ENABLED) {
diskCache.loadMempoolCache();
@ -171,7 +172,6 @@ class Server {
logger.debug(msg);
}
}
await poolsUpdater.updatePoolsJson();
await blocks.$updateBlocks();
await memPool.$updateMempool();
indexer.$run();