Hashrates indexing waits for blocks indexing - Batch hashrates I/O ops

This commit is contained in:
nymkappa
2022-02-21 17:34:07 +09:00
parent 537e50c682
commit 649ad2e859
4 changed files with 28 additions and 21 deletions

View File

@@ -164,12 +164,12 @@ class Server {
}
}
async runIndexingWhenReady() {
runIndexingWhenReady() {
if (!Common.indexingEnabled() || mempool.hasPriority()) {
return;
}
await blocks.$generateBlockDatabase();
await mining.$generateNetworkHashrateHistory();
blocks.$generateBlockDatabase();
mining.$generateNetworkHashrateHistory();
}
setUpWebsocketHandling() {