Fix accelerated fee rate again

This commit is contained in:
Mononaut
2024-04-14 03:21:24 +00:00
parent 1082889b64
commit f3864c9100
4 changed files with 4 additions and 4 deletions

View File

@@ -366,7 +366,7 @@ export class BlockComponent implements OnInit, OnDestroy {
if (acceleratedInBlock[tx.txid]) {
tx.acc = true;
const acceleration = acceleratedInBlock[tx.txid];
const boostCost = acceleration.boostCost || (acceleration.feePaid - acceleration.baseFee - acceleration.vsizeFee);
const boostCost = acceleration.boostCost || acceleration.bidBoost;
const acceleratedFeeRate = Math.max(acceleration.effectiveFee, acceleration.effectiveFee + boostCost) / acceleration.effectiveVsize;
if (acceleratedFeeRate > tx.rate) {
tx.rate = acceleratedFeeRate;