Replacing footer and latest blocks with a stats dashboard.

This commit is contained in:
softsimon
2020-09-21 19:41:12 +07:00
parent 8146939f0f
commit 6c1d28a9ac
18 changed files with 235 additions and 209 deletions

View File

@@ -31,6 +31,7 @@ export class StateService {
blockTransactions$ = new Subject<Transaction>();
isLoadingWebSocket$ = new ReplaySubject<boolean>(1);
vbytesPerSecond$ = new ReplaySubject<number>(1);
lastDifficultyAdjustment$ = new ReplaySubject<number>(1);
gitCommit$ = new ReplaySubject<string>(1);
live2Chart$ = new Subject<OptimizedMempoolStats>();

View File

@@ -141,6 +141,10 @@ export class WebsocketService {
this.stateService.vbytesPerSecond$.next(response.vBytesPerSecond);
}
if (response.lastDifficultyAdjustment !== undefined) {
this.stateService.lastDifficultyAdjustment$.next(response.lastDifficultyAdjustment);
}
if (response['git-commit']) {
this.stateService.gitCommit$.next(response['git-commit']);
}