UTXO spent tracking refactor

refs #1301
This commit is contained in:
softsimon
2022-03-07 19:45:09 +01:00
parent f6a73aa91c
commit 01ff8f79a8
6 changed files with 59 additions and 44 deletions

View File

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

View File

@@ -252,7 +252,7 @@ export class WebsocketService {
}
if (response.utxoSpent) {
this.stateService.utxoSpent$.next();
this.stateService.utxoSpent$.next(response.utxoSpent);
}
if (response.backendInfo) {