fix pool update retry delay

This commit is contained in:
Mononaut 2025-04-01 06:42:05 +00:00
parent 4d8a68156d
commit 1c9b422db4
No known key found for this signature in database
GPG Key ID: A3F058E41374C04E

View File

@ -98,7 +98,8 @@ class PoolsUpdater {
logger.info(`Mining pools-v2.json (${githubSha}) import completed`, this.tag);
} catch (e) {
this.lastRun = now - 600; // Try again in 10 minutes
// fast-forward lastRun to 10 minutes before the next scheduled update
this.lastRun = now - (config.MEMPOOL.POOLS_UPDATE_DELAY - 600);
logger.err(`PoolsUpdater failed. Will try again in 10 minutes. Exception: ${JSON.stringify(e)}`, this.tag);
}
}