diff --git a/frontend/src/app/components/transaction/transaction.component.html b/frontend/src/app/components/transaction/transaction.component.html
index 09efaee1c..0b5e12001 100644
--- a/frontend/src/app/components/transaction/transaction.component.html
+++ b/frontend/src/app/components/transaction/transaction.component.html
@@ -100,19 +100,19 @@
ETA |
-
+
- = 7" [ngIfElse]="belowBlockLimit">
+ = 7" [ngIfElse]="belowBlockLimit">
In several hours (or more)
-
+
-
+
diff --git a/frontend/src/app/components/transaction/transaction.component.ts b/frontend/src/app/components/transaction/transaction.component.ts
index 11c3b8063..bf1e0f144 100644
--- a/frontend/src/app/components/transaction/transaction.component.ts
+++ b/frontend/src/app/components/transaction/transaction.component.ts
@@ -173,12 +173,6 @@ export class TransactionComponent implements OnInit, AfterViewInit, OnDestroy {
this.tx.effectiveFeePerVsize = totalFees / (totalWeight / 4);
- if (!this.tx?.status?.confirmed) {
- this.stateService.markBlock$.next({
- txFeePerVSize: this.tx.effectiveFeePerVsize,
- mempoolPosition: this.mempoolPosition,
- });
- }
this.cpfpInfo = cpfpInfo;
});
@@ -241,6 +235,7 @@ export class TransactionComponent implements OnInit, AfterViewInit, OnDestroy {
this.stateService.markBlock$.next({
mempoolPosition: this.mempoolPosition
});
+ this.txInBlockIndex = this.mempoolPosition.block;
}
} else {
this.mempoolPosition = null;
@@ -430,7 +425,7 @@ export class TransactionComponent implements OnInit, AfterViewInit, OnDestroy {
});
this.mempoolBlocksSubscription = this.stateService.mempoolBlocks$.subscribe((mempoolBlocks) => {
- if (!this.tx) {
+ if (!this.tx || this.mempoolPosition) {
return;
}
@@ -506,6 +501,8 @@ export class TransactionComponent implements OnInit, AfterViewInit, OnDestroy {
this.rbfInfo = null;
this.rbfReplaces = [];
this.showCpfpDetails = false;
+ this.txInBlockIndex = null;
+ this.mempoolPosition = null;
document.body.scrollTo(0, 0);
this.leaveTransaction();
}
@@ -587,6 +584,7 @@ export class TransactionComponent implements OnInit, AfterViewInit, OnDestroy {
this.urlFragmentSubscription.unsubscribe();
this.mempoolBlocksSubscription.unsubscribe();
this.mempoolPositionSubscription.unsubscribe();
+ this.mempoolBlocksSubscription.unsubscribe();
this.leaveTransaction();
}
}
|