Disable automatic block re-indexing by default

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

No files matched your search

+4
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;