Merge pull request #1662 from mempool/nymkappa/bugfix/remove-useless-log

Delete useless log
This commit is contained in:
wiz 2022-05-17 22:59:27 +09:00 committed by GitHub
commit 8af9c1d64f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -404,7 +404,6 @@ class Blocks {
if (Common.indexingEnabled()) { if (Common.indexingEnabled()) {
const dbBlock = await blocksRepository.$getBlockByHash(hash); const dbBlock = await blocksRepository.$getBlockByHash(hash);
if (dbBlock != null) { if (dbBlock != null) {
logger.info('GET BLOCK: already indexed');
return prepareBlock(dbBlock); return prepareBlock(dbBlock);
} }
} }
@ -413,12 +412,10 @@ class Blocks {
// Not Bitcoin network, return the block as it // Not Bitcoin network, return the block as it
if (['mainnet', 'testnet', 'signet'].includes(config.MEMPOOL.NETWORK) === false) { if (['mainnet', 'testnet', 'signet'].includes(config.MEMPOOL.NETWORK) === false) {
logger.info('GET BLOCK: using bitcoin backend');
return block; return block;
} }
// Bitcoin network, add our custom data on top // Bitcoin network, add our custom data on top
logger.info('GET BLOCK: index block on the fly');
const transactions = await this.$getTransactionsExtended(hash, block.height, true); const transactions = await this.$getTransactionsExtended(hash, block.height, true);
const blockExtended = await this.$getBlockExtended(block, transactions); const blockExtended = await this.$getBlockExtended(block, transactions);
if (Common.indexingEnabled()) { if (Common.indexingEnabled()) {