Don't try to identify the mining pool on liquid/bisq

This commit is contained in:
nymkappa 2022-01-21 18:14:42 +09:00
parent df960ab9ba
commit 40e529ece7
No known key found for this signature in database
GPG Key ID: E155910B16E8BD04

View File

@ -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);
}