mirror of
https://github.com/mempool/mempool.git
synced 2025-02-23 22:46:54 +01:00
Bugfix: Don't extend already extended transactions to not override the firstSeen property.
fixes #390
This commit is contained in:
parent
5148de8f17
commit
e688948e42
1 changed files with 5 additions and 0 deletions
|
@ -26,6 +26,11 @@ class TransactionUtils {
|
|||
}
|
||||
|
||||
private extendTransaction(transaction: IEsploraApi.Transaction): TransactionExtended {
|
||||
// @ts-ignore
|
||||
if (transaction.vsize) {
|
||||
// @ts-ignore
|
||||
return transaction;
|
||||
}
|
||||
const feePerVbytes = Math.max(1, (transaction.fee || 0) / (transaction.weight / 4));
|
||||
const transactionExtended: TransactionExtended = Object.assign({
|
||||
vsize: Math.round(transaction.weight / 4),
|
||||
|
|
Loading…
Add table
Reference in a new issue