From 6565c363f857f699b6de6de346fa0fbe6a2094c9 Mon Sep 17 00:00:00 2001 From: nymkappa Date: Wed, 27 Apr 2022 16:57:07 +0900 Subject: [PATCH] Update pools table before fetching the first blocks --- backend/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/index.ts b/backend/src/index.ts index 7bf213a81..83dad1449 100644 --- a/backend/src/index.ts +++ b/backend/src/index.ts @@ -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();