Update block API to use indexing if available

This commit is contained in:
nymkappa
2022-04-20 13:12:32 +09:00
parent b50f9b4e2d
commit 057b5bd2e1
7 changed files with 102 additions and 34 deletions

View File

@@ -174,7 +174,7 @@ export class Common {
return (
['mainnet', 'testnet', 'signet'].includes(config.MEMPOOL.NETWORK) &&
config.DATABASE.ENABLED === true &&
config.MEMPOOL.INDEXING_BLOCKS_AMOUNT != 0
config.MEMPOOL.INDEXING_BLOCKS_AMOUNT !== 0
);
}
}