[mining] fix pools updater only running at start

This commit is contained in:
nymkappa
2024-08-20 11:53:48 +02:00
parent db10ab9aae
commit ae2ed8fdae
3 changed files with 6 additions and 6 deletions

View File

@@ -239,6 +239,7 @@ class Server {
if (config.FIAT_PRICE.ENABLED) {
priceUpdater.$run();
}
await poolsUpdater.updatePoolsJson();
// rerun immediately if we skipped the mempool update, otherwise wait POLL_RATE_MS
const elapsed = Date.now() - start;