Another bugfix related to the mempool transaction subscription.
This commit is contained in:
@@ -129,6 +129,9 @@ export class WebsocketService {
|
||||
}
|
||||
|
||||
startTrackTransaction(txId: string) {
|
||||
if (this.isTrackingTx) {
|
||||
return;
|
||||
}
|
||||
this.websocketSubject.next({ 'track-tx': txId });
|
||||
this.isTrackingTx = true;
|
||||
}
|
||||
@@ -139,7 +142,7 @@ export class WebsocketService {
|
||||
}
|
||||
|
||||
stopTrackingTransaction() {
|
||||
if (this.isTrackingTx === false) {
|
||||
if (!this.isTrackingTx) {
|
||||
return;
|
||||
}
|
||||
this.websocketSubject.next({ 'track-tx': 'stop' });
|
||||
|
||||
Reference in New Issue
Block a user