Possibly fix miner tag loading on tracked transactions

This commit is contained in:
natsoni 2024-07-10 12:55:13 +09:00
parent a530b70f9f
commit 2915be8fd6
No known key found for this signature in database
GPG key ID: C65917583181743B

View file

@ -336,7 +336,7 @@ export class TransactionComponent implements OnInit, AfterViewInit, OnDestroy {
});
this.miningSubscription = this.fetchMiningInfo$.pipe(
filter((target) => target.txid === this.txId),
filter((target) => target.txid === this.txId && !this.pool),
tap(() => {
this.pool = null;
}),
@ -614,6 +614,7 @@ export class TransactionComponent implements OnInit, AfterViewInit, OnDestroy {
block_hash: block.id,
block_time: block.timestamp,
};
this.pool = block.extras.pool;
this.txChanged$.next(true);
this.stateService.markBlock$.next({ blockHeight: block.height });
if (this.tx.acceleration || (this.accelerationInfo && ['accelerating', 'completed_provisional', 'completed'].includes(this.accelerationInfo.status))) {