UTXO spent tracking

fixes #1301
This commit is contained in:
softsimon
2022-03-06 18:27:13 +01:00
parent 3e50e4541b
commit 059e82a805
7 changed files with 78 additions and 49 deletions

View File

@@ -81,6 +81,7 @@ export class StateService {
mempoolInfo$ = new ReplaySubject<MempoolInfo>(1);
mempoolBlocks$ = new ReplaySubject<MempoolBlock[]>(1);
txReplaced$ = new Subject<Transaction>();
utxoSpent$ = new Subject<null>();
mempoolTransactions$ = new Subject<Transaction>();
blockTransactions$ = new Subject<Transaction>();
isLoadingWebSocket$ = new ReplaySubject<boolean>(1);

View File

@@ -251,6 +251,10 @@ export class WebsocketService {
this.stateService.bsqPrice$.next(response['bsq-price']);
}
if (response.utxoSpent) {
this.stateService.utxoSpent$.next();
}
if (response.backendInfo) {
this.stateService.backendInfo$.next(response.backendInfo);