Fix address tracking issues.
This commit is contained in:
@@ -25,7 +25,6 @@ export class StateService {
|
||||
mempoolBlocks$ = new ReplaySubject<MempoolBlock[]>(1);
|
||||
txConfirmed$ = new Subject<Block>();
|
||||
mempoolTransactions$ = new Subject<Transaction>();
|
||||
assetTransactions$ = new Subject<Transaction>();
|
||||
blockTransactions$ = new Subject<Transaction>();
|
||||
|
||||
live2Chart$ = new Subject<OptimizedMempoolStats>();
|
||||
@@ -33,7 +32,7 @@ export class StateService {
|
||||
viewFiat$ = new BehaviorSubject<boolean>(false);
|
||||
connectionState$ = new BehaviorSubject<0 | 1 | 2>(2);
|
||||
|
||||
markBlock$ = new Subject<MarkBlockState>();
|
||||
markBlock$ = new ReplaySubject<MarkBlockState>();
|
||||
keyNavigation$ = new Subject<KeyboardEvent>();
|
||||
|
||||
constructor(
|
||||
|
||||
@@ -111,20 +111,8 @@ export class WebsocketService {
|
||||
});
|
||||
}
|
||||
|
||||
if (response['address-block-transactions']) {
|
||||
response['address-block-transactions'].forEach((addressTransaction: Transaction) => {
|
||||
this.stateService.blockTransactions$.next(addressTransaction);
|
||||
});
|
||||
}
|
||||
|
||||
if (response['asset-transactions']) {
|
||||
response['asset-transactions'].forEach((assetTransaction: Transaction) => {
|
||||
this.stateService.assetTransactions$.next(assetTransaction);
|
||||
});
|
||||
}
|
||||
|
||||
if (response['asset-block-transactions']) {
|
||||
response['asset-block-transactions'].forEach((addressTransaction: Transaction) => {
|
||||
if (response['block-transactions']) {
|
||||
response['block-transactions'].forEach((addressTransaction: Transaction) => {
|
||||
this.stateService.blockTransactions$.next(addressTransaction);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user