Hack to make it possible to load the Coinbase transaction from Bitcoin Core.

This commit is contained in:
softsimon
2021-01-02 04:40:10 +07:00
parent 89b4de2484
commit a25125091d
4 changed files with 19 additions and 2 deletions

View File

@@ -68,7 +68,7 @@ class Blocks {
for (let i = 0; i < txIds.length; i++) {
// When using bitcoind, just fetch the coinbase tx for now
if (config.MEMPOOL.BACKEND !== 'none' && i === 0) {
if (config.MEMPOOL.BACKEND !== 'esplora' && i === 0) {
let txFound = false;
let findCoinbaseTxTries = 0;
// It takes Electrum Server a few seconds to index the transaction after a block is found