diff --git a/backend/src/api/transaction-utils.ts b/backend/src/api/transaction-utils.ts index 8c3867329..2a5d3a9ad 100644 --- a/backend/src/api/transaction-utils.ts +++ b/backend/src/api/transaction-utils.ts @@ -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),