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

Update pools table before fetching the first blocks
This commit is contained in:
wiz 2022-05-07 15:25:51 +09:00 committed by GitHub
commit 2b0270042a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -151,6 +151,7 @@ class Server {
logger.debug(msg); logger.debug(msg);
} }
} }
await poolsUpdater.updatePoolsJson();
await blocks.$updateBlocks(); await blocks.$updateBlocks();
await memPool.$updateMempool(); await memPool.$updateMempool();
this.$runIndexingWhenReady(); this.$runIndexingWhenReady();
@ -187,7 +188,6 @@ class Server {
} }
try { try {
await poolsUpdater.updatePoolsJson();
await blocks.$generateBlockDatabase(); await blocks.$generateBlockDatabase();
await mining.$generateNetworkHashrateHistory(); await mining.$generateNetworkHashrateHistory();
await mining.$generatePoolHashrateHistory(); await mining.$generatePoolHashrateHistory();