Improvments to the mempool transaction subscription.

This commit is contained in:
softsimon
2020-04-13 02:06:10 +07:00
parent d432b3ce4a
commit bb90a622d2
5 changed files with 36 additions and 9 deletions

View File

@@ -133,6 +133,11 @@ export class WebsocketService {
this.isTrackingTx = true;
}
startMultiTrackTransaction(txId: string) {
this.websocketSubject.next({ 'track-tx': txId, 'watch-mempool': true });
this.isTrackingTx = true;
}
stopTrackingTransaction() {
if (this.isTrackingTx === false) {
return;