Disable automatic block re-indexing by default

This commit is contained in:
nymkappa
2022-07-09 19:04:35 +02:00
parent 1037fbe52b
commit f3f0c688d8
5 changed files with 14 additions and 2 deletions

View File

@@ -222,6 +222,10 @@ class PoolsParser {
* Delete blocks which needs to be reindexed
*/
private async $deleteBlocskToReindex(finalPoolDataUpdate: any[]) {
if (config.MEMPOOL.AUTOMATIC_BLOCK_REINDEXING === false) {
return;
}
const blockCount = await BlocksRepository.$blockCount(null, null);
if (blockCount === 0) {
return;