Merge branch 'master' into nymkappa/bugfix/diff-adj-table-raw-db-data

This commit is contained in:
wiz
2022-07-10 12:56:30 +02:00
committed by GitHub
6 changed files with 23 additions and 5 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;