Bitcoind: Lookup block transactions as long as in sync.

refs #288
This commit is contained in:
softsimon 2021-01-20 17:15:11 +07:00
parent 1a04b088fb
commit a158794e2c
No known key found for this signature in database
GPG Key ID: 488D7DCFB5A430D7

View File

@ -86,7 +86,7 @@ class Blocks {
if (mempool[txIds[i]]) {
transactions.push(mempool[txIds[i]]);
transactionsFound++;
} else if (config.MEMPOOL.BACKEND === 'esplora') {
} else if (config.MEMPOOL.BACKEND === 'esplora' || memPool.isInSync()) {
logger.debug(`Fetching block tx ${i} of ${txIds.length}`);
const tx = await transactionUtils.$getTransactionExtended(txIds[i]);
if (tx) {