Always re-indexing blocks when updating mining pools

This commit is contained in:
nymkappa 2023-05-25 09:08:51 -07:00
parent d27febf878
commit 8ffe2f3156
No known key found for this signature in database
GPG Key ID: E155910B16E8BD04

View File

@ -118,10 +118,6 @@ class PoolsParser {
* @param pool
*/
private async $deleteBlocksForPool(pool: PoolTag): Promise<void> {
if (config.MEMPOOL.AUTOMATIC_BLOCK_REINDEXING === false) {
return;
}
// Get oldest blocks mined by the pool and assume pools-v2.json updates only concern most recent years
// Ignore early days of Bitcoin as there were no mining pool yet
const [oldestPoolBlock]: any[] = await DB.query(`