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

This commit is contained in:
wiz authored and GitHub committed 2022-07-10 12:56:30 +02:00
commit 30e8b134bc
6 files changed
+23 -5

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;