Merge pull request #4525 from mempool/mononaut/nogl-fee-chart
Fix missing mempool fee chart when webgl disabled
This commit is contained in:
commit
577b1a9f66
@ -64,6 +64,7 @@ export class MempoolBlockComponent implements OnInit, OnDestroy {
|
|||||||
}),
|
}),
|
||||||
tap(() => {
|
tap(() => {
|
||||||
this.stateService.markBlock$.next({ mempoolBlockIndex: this.mempoolBlockIndex });
|
this.stateService.markBlock$.next({ mempoolBlockIndex: this.mempoolBlockIndex });
|
||||||
|
this.websocketService.startTrackMempoolBlock(this.mempoolBlockIndex);
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -183,14 +183,18 @@ export class WebsocketService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
startTrackMempoolBlock(block: number) {
|
startTrackMempoolBlock(block: number) {
|
||||||
this.websocketSubject.next({ 'track-mempool-block': block });
|
// skip duplicate tracking requests
|
||||||
this.isTrackingMempoolBlock = true
|
if (this.trackingMempoolBlock !== block) {
|
||||||
this.trackingMempoolBlock = block
|
this.websocketSubject.next({ 'track-mempool-block': block });
|
||||||
|
this.isTrackingMempoolBlock = true;
|
||||||
|
this.trackingMempoolBlock = block;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
stopTrackMempoolBlock() {
|
stopTrackMempoolBlock() {
|
||||||
this.websocketSubject.next({ 'track-mempool-block': -1 });
|
this.websocketSubject.next({ 'track-mempool-block': -1 });
|
||||||
this.isTrackingMempoolBlock = false
|
this.isTrackingMempoolBlock = false;
|
||||||
|
this.trackingMempoolBlock = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
startTrackRbf(mode: 'all' | 'fullRbf') {
|
startTrackRbf(mode: 'all' | 'fullRbf') {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user