mirror of
https://github.com/mempool/mempool.git
synced 2025-02-23 14:40:38 +01:00
Merge pull request #1688 from mempool/simon/mempool-tx-fee-bug
Fixes broken fee rate calculation for mempool transactions
This commit is contained in:
commit
55f2cf06af
1 changed files with 3 additions and 6 deletions
|
@ -192,12 +192,9 @@ class BitcoinApi implements AbstractBitcoinApi {
|
|||
}
|
||||
|
||||
if (addPrevout) {
|
||||
if (transaction.confirmations) {
|
||||
esploraTransaction = await this.$calculateFeeFromInputs(esploraTransaction);
|
||||
} else {
|
||||
esploraTransaction = await this.$appendMempoolFeeData(esploraTransaction);
|
||||
esploraTransaction = await this.$calculateFeeFromInputs(esploraTransaction);
|
||||
}
|
||||
esploraTransaction = await this.$calculateFeeFromInputs(esploraTransaction);
|
||||
} else if (!transaction.confirmations) {
|
||||
esploraTransaction = await this.$appendMempoolFeeData(esploraTransaction);
|
||||
}
|
||||
|
||||
return esploraTransaction;
|
||||
|
|
Loading…
Add table
Reference in a new issue