Update pools table before fetching the first blocks

This commit is contained in:
nymkappa 2022-04-27 16:57:07 +09:00
parent bf314be7eb
commit 6565c363f8
No known key found for this signature in database
GPG Key ID: E155910B16E8BD04

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();