Merge branch 'master' into feature/pool-stats-page

This commit is contained in:
nymkappa
2022-02-15 20:42:06 +09:00
10 changed files with 63 additions and 133 deletions

View File

@@ -169,4 +169,12 @@ export class Common {
default: return null;
}
}
static indexingEnabled(): boolean {
return (
['mainnet', 'testnet', 'signet'].includes(config.MEMPOOL.NETWORK) &&
config.DATABASE.ENABLED === true &&
config.MEMPOOL.INDEXING_BLOCKS_AMOUNT != 0
);
}
}