mirror of
https://github.com/mempool/mempool.git
synced 2025-09-28 16:47:37 +02:00
fix pool update retry delay
This commit is contained in:
@@ -98,7 +98,8 @@ class PoolsUpdater {
|
|||||||
logger.info(`Mining pools-v2.json (${githubSha}) import completed`, this.tag);
|
logger.info(`Mining pools-v2.json (${githubSha}) import completed`, this.tag);
|
||||||
|
|
||||||
} catch (e) {
|
} 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);
|
logger.err(`PoolsUpdater failed. Will try again in 10 minutes. Exception: ${JSON.stringify(e)}`, this.tag);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user