Index block summaries in db

This commit is contained in:
nymkappa
2022-06-18 16:48:02 +02:00
parent f75da3cc8f
commit f98b829678
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
);
}
}