mirror of
https://github.com/mempool/mempool.git
synced 2025-02-25 07:07:36 +01:00
[accelerator] hide modal for transactions near the top of the mempool
This commit is contained in:
parent
c43b567847
commit
487d82eccf
1 changed files with 6 additions and 0 deletions
|
@ -65,6 +65,7 @@ export class TransactionComponent implements OnInit, AfterViewInit, OnDestroy {
|
||||||
txId: string;
|
txId: string;
|
||||||
txInBlockIndex: number;
|
txInBlockIndex: number;
|
||||||
mempoolPosition: MempoolPosition;
|
mempoolPosition: MempoolPosition;
|
||||||
|
gotInitialPosition = false;
|
||||||
accelerationPositions: AccelerationPosition[];
|
accelerationPositions: AccelerationPosition[];
|
||||||
isLoadingTx = true;
|
isLoadingTx = true;
|
||||||
error: any = undefined;
|
error: any = undefined;
|
||||||
|
@ -431,9 +432,13 @@ export class TransactionComponent implements OnInit, AfterViewInit, OnDestroy {
|
||||||
if (txPosition.position?.block > 0 && this.tx.weight < 4000) {
|
if (txPosition.position?.block > 0 && this.tx.weight < 4000) {
|
||||||
this.cashappEligible = true;
|
this.cashappEligible = true;
|
||||||
}
|
}
|
||||||
|
if (!this.gotInitialPosition && txPosition.position?.block === 0 && txPosition.position?.vsize < 750_000) {
|
||||||
|
this.accelerationFlowCompleted = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
this.gotInitialPosition = true;
|
||||||
} else {
|
} else {
|
||||||
this.mempoolPosition = null;
|
this.mempoolPosition = null;
|
||||||
this.accelerationPositions = null;
|
this.accelerationPositions = null;
|
||||||
|
@ -864,6 +869,7 @@ export class TransactionComponent implements OnInit, AfterViewInit, OnDestroy {
|
||||||
|
|
||||||
resetTransaction() {
|
resetTransaction() {
|
||||||
this.firstLoad = false;
|
this.firstLoad = false;
|
||||||
|
this.gotInitialPosition = false;
|
||||||
this.error = undefined;
|
this.error = undefined;
|
||||||
this.tx = null;
|
this.tx = null;
|
||||||
this.txChanged$.next(true);
|
this.txChanged$.next(true);
|
||||||
|
|
Loading…
Add table
Reference in a new issue