mirror of
https://github.com/mempool/mempool.git
synced 2025-01-19 05:34:03 +01:00
clear feeDelta if a tx is mined by non-participating pool
This commit is contained in:
parent
72bb92dd8b
commit
b3ac107b0b
@ -359,12 +359,16 @@ export class TransactionComponent implements OnInit, AfterViewInit, OnDestroy {
|
|||||||
).subscribe((accelerationHistory) => {
|
).subscribe((accelerationHistory) => {
|
||||||
for (const acceleration of accelerationHistory) {
|
for (const acceleration of accelerationHistory) {
|
||||||
if (acceleration.txid === this.txId) {
|
if (acceleration.txid === this.txId) {
|
||||||
if ((acceleration.status === 'completed' || acceleration.status === 'completed_provisional') && acceleration.pools.includes(acceleration.minedByPoolUniqueId)) {
|
if (acceleration.status === 'completed' || acceleration.status === 'completed_provisional') {
|
||||||
const boostCost = acceleration.boostCost || acceleration.bidBoost;
|
if (acceleration.pools.includes(acceleration.minedByPoolUniqueId)) {
|
||||||
acceleration.acceleratedFeeRate = Math.max(acceleration.effectiveFee, acceleration.effectiveFee + boostCost) / acceleration.effectiveVsize;
|
const boostCost = acceleration.boostCost || acceleration.bidBoost;
|
||||||
acceleration.boost = boostCost;
|
acceleration.acceleratedFeeRate = Math.max(acceleration.effectiveFee, acceleration.effectiveFee + boostCost) / acceleration.effectiveVsize;
|
||||||
this.tx.acceleratedAt = acceleration.added;
|
acceleration.boost = boostCost;
|
||||||
this.accelerationInfo = acceleration;
|
this.tx.acceleratedAt = acceleration.added;
|
||||||
|
this.accelerationInfo = acceleration;
|
||||||
|
} else {
|
||||||
|
this.tx.feeDelta = undefined;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
this.waitingForAccelerationInfo = false;
|
this.waitingForAccelerationInfo = false;
|
||||||
this.setIsAccelerated();
|
this.setIsAccelerated();
|
||||||
|
Loading…
Reference in New Issue
Block a user