Index block summaries in db

This commit is contained in:
nymkappa
2022-06-18 16:48:02 +02:00
parent 95d645255d
commit 72a603ac37
11 changed files with 166 additions and 8 deletions

View File

@@ -177,4 +177,11 @@ export class Common {
config.MEMPOOL.INDEXING_BLOCKS_AMOUNT !== 0
);
}
static blocksSummariesIndexingEnabled(): boolean {
return (
Common.indexingEnabled() &&
config.MEMPOOL.BLOCKS_SUMMARIES_INDEXING === true
);
}
}