From 4ab45813930aeab70a5ddae1f9c0ff3063443812 Mon Sep 17 00:00:00 2001 From: softsimon Date: Mon, 12 Apr 2021 13:02:31 +0400 Subject: [PATCH] Fix for effective fee rate calculation bug. --- .../src/app/components/transaction/transaction.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/app/components/transaction/transaction.component.ts b/frontend/src/app/components/transaction/transaction.component.ts index 81b13b212..770bcf993 100644 --- a/frontend/src/app/components/transaction/transaction.component.ts +++ b/frontend/src/app/components/transaction/transaction.component.ts @@ -108,7 +108,7 @@ export class TransactionComponent implements OnInit, OnDestroy { } else { this.apiService.getCpfpinfo$(this.tx.txid) .subscribe((cpfpInfo) => { - const lowerFeeParents = cpfpInfo.ancestors.filter((parent) => (parent.fee / (parent.weight / 4)) < tx.effectiveFeePerVsize); + const lowerFeeParents = cpfpInfo.ancestors.filter((parent) => (parent.fee / (parent.weight / 4)) < tx.feePerVsize); let totalWeight = tx.weight + lowerFeeParents.reduce((prev, val) => prev + val.weight, 0); let totalFees = tx.fee + lowerFeeParents.reduce((prev, val) => prev + val.fee, 0);