mirror of
https://github.com/mempool/mempool.git
synced 2025-02-23 06:35:15 +01:00
Fix missing mempool fee chart when webgl disabled
This commit is contained in:
parent
d6291ecd52
commit
0370cc896c
2 changed files with 9 additions and 4 deletions
|
@ -64,6 +64,7 @@ export class MempoolBlockComponent implements OnInit, OnDestroy {
|
|||
}),
|
||||
tap(() => {
|
||||
this.stateService.markBlock$.next({ mempoolBlockIndex: this.mempoolBlockIndex });
|
||||
this.websocketService.startTrackMempoolBlock(this.mempoolBlockIndex);
|
||||
})
|
||||
);
|
||||
|
||||
|
|
|
@ -183,14 +183,18 @@ export class WebsocketService {
|
|||
}
|
||||
|
||||
startTrackMempoolBlock(block: number) {
|
||||
// skip duplicate tracking requests
|
||||
if (this.trackingMempoolBlock !== block) {
|
||||
this.websocketSubject.next({ 'track-mempool-block': block });
|
||||
this.isTrackingMempoolBlock = true
|
||||
this.trackingMempoolBlock = block
|
||||
this.isTrackingMempoolBlock = true;
|
||||
this.trackingMempoolBlock = block;
|
||||
}
|
||||
}
|
||||
|
||||
stopTrackMempoolBlock() {
|
||||
this.websocketSubject.next({ 'track-mempool-block': -1 });
|
||||
this.isTrackingMempoolBlock = false
|
||||
this.isTrackingMempoolBlock = false;
|
||||
this.trackingMempoolBlock = null;
|
||||
}
|
||||
|
||||
startTrackRbf(mode: 'all' | 'fullRbf') {
|
||||
|
|
Loading…
Add table
Reference in a new issue