From 40e529ece781d9b59988b0f60bdcd63dcbdcac7d Mon Sep 17 00:00:00 2001 From: nymkappa Date: Fri, 21 Jan 2022 18:14:42 +0900 Subject: [PATCH] Don't try to identify the mining pool on liquid/bisq --- 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 28877a6d7..abaeaf6a1 100644 --- a/backend/src/api/blocks.ts +++ b/backend/src/api/blocks.ts @@ -233,10 +233,10 @@ class Blocks { const txIds: string[] = await bitcoinApi.$getTxIdsForBlock(blockHash); const transactions = await this.$getTransactionsExtended(blockHash, block.height, false); const blockExtended: BlockExtended = this.getBlockExtended(block, transactions); - const miner = await this.$findBlockMiner(blockExtended.coinbaseTx); const coinbase: IEsploraApi.Transaction = await bitcoinApi.$getRawTransaction(transactions[0].txid, true); if (['mainnet', 'testnet', 'signet'].includes(config.MEMPOOL.NETWORK) === true) { + const miner = await this.$findBlockMiner(blockExtended.coinbaseTx); await blocksRepository.$saveBlockInDatabase(blockExtended, blockHash, coinbase.hex, miner); }