await for mempool change handler after loading disk cache

This commit is contained in:
Mononaut
2023-04-30 13:59:29 -06:00
parent ba4253da79
commit f30cf70226
4 changed files with 6 additions and 6 deletions

View File

@@ -120,7 +120,7 @@ class Server {
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();
await diskCache.loadMempoolCache();
}
if (config.STATISTICS.ENABLED && config.DATABASE.ENABLED && cluster.isPrimary) {