Add backend type flag, disable address graphs for non-esplora

This commit is contained in:
Mononaut
2024-04-01 03:49:56 +00:00
parent 1630d71e7b
commit 855e25ccd2
6 changed files with 15 additions and 2 deletions

View File

@@ -62,6 +62,7 @@ export class WebsocketService {
if (theInitData.body.blocks) {
theInitData.body.blocks = theInitData.body.blocks.reverse();
}
this.stateService.backend$.next(theInitData.backend);
this.stateService.isLoadingWebSocket$.next(false);
this.handleResponse(theInitData.body);
this.startSubscription(false, true);
@@ -290,6 +291,10 @@ export class WebsocketService {
handleResponse(response: WebsocketResponse) {
let reinitBlocks = false;
if (response.backend) {
this.stateService.backend$.next(response.backend);
}
if (response.blocks && response.blocks.length) {
const blocks = response.blocks;
this.stateService.resetBlocks(blocks);