Merge pull request #1565 from mempool/nymkappa/bugfix/initial-indexing

Update pools table before fetching the first blocks
This commit is contained in:
wiz authored and GitHub committed 2022-05-07 15:25:51 +09:00
commit f7c8a85a5f
1 file changed
+1 -1
+1 -1
View File
@@ -151,6 +151,7 @@ class Server {
logger.debug(msg);
}
}
await poolsUpdater.updatePoolsJson();
await blocks.$updateBlocks();
await memPool.$updateMempool();
this.$runIndexingWhenReady();
@@ -187,7 +188,6 @@ class Server {
}
try {
await poolsUpdater.updatePoolsJson();
await blocks.$generateBlockDatabase();
await mining.$generateNetworkHashrateHistory();
await mining.$generatePoolHashrateHistory();