From a158794e2c8e8c8a956e93d1c51bde8ca476a721 Mon Sep 17 00:00:00 2001 From: softsimon Date: Wed, 20 Jan 2021 17:15:11 +0700 Subject: [PATCH] Bitcoind: Lookup block transactions as long as in sync. refs #288 --- backend/src/api/blocks.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/api/blocks.ts b/backend/src/api/blocks.ts index 4258b5260..5f4733956 100644 --- a/backend/src/api/blocks.ts +++ b/backend/src/api/blocks.ts @@ -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) {