diff --git a/backend/src/routes.ts b/backend/src/routes.ts index ecf827dee..22205a3a9 100644 --- a/backend/src/routes.ts +++ b/backend/src/routes.ts @@ -15,8 +15,8 @@ class Routes { constructor() { if (!config.DB_DISABLED) { - this.createCache(); - setInterval(this.createCache.bind(this), 600000); + // this.createCache(); + // setInterval(this.createCache.bind(this), 600000); } } diff --git a/frontend/src/app/app.module.ts b/frontend/src/app/app.module.ts index 00b9282b6..8482e8df1 100644 --- a/frontend/src/app/app.module.ts +++ b/frontend/src/app/app.module.ts @@ -43,7 +43,7 @@ import { NgbTypeaheadModule } from '@ng-bootstrap/ng-bootstrap'; import { FeesBoxComponent } from './components/fees-box/fees-box.component'; import { DashboardComponent } from './dashboard/dashboard.component'; import { FontAwesomeModule, FaIconLibrary } from '@fortawesome/angular-fontawesome'; -import { faChartArea, faCube, faDatabase, faInfo, faInfoCircle, faList, faQuestion, faQuestionCircle, faSearch, faTachometerAlt, faThList, faTv } from '@fortawesome/free-solid-svg-icons'; +import { faChartArea, faCube, faCubes, faDatabase, faInfo, faInfoCircle, faList, faQuestion, faQuestionCircle, faSearch, faTachometerAlt, faThList, faTv } from '@fortawesome/free-solid-svg-icons'; @NgModule({ declarations: [ @@ -101,7 +101,8 @@ export class AppModule { library.addIcons(faInfoCircle); library.addIcons(faChartArea); library.addIcons(faTv); - library.addIcons(faCube); + library.addIcons(faTachometerAlt); + library.addIcons(faCubes); library.addIcons(faThList); library.addIcons(faList); library.addIcons(faTachometerAlt); diff --git a/frontend/src/app/components/block/block.component.ts b/frontend/src/app/components/block/block.component.ts index 735e258c7..4a27ccf06 100644 --- a/frontend/src/app/components/block/block.component.ts +++ b/frontend/src/app/components/block/block.component.ts @@ -8,6 +8,7 @@ import { of, Subscription } from 'rxjs'; import { StateService } from '../../services/state.service'; import { SeoService } from 'src/app/services/seo.service'; import { env } from 'src/app/app.constants'; +import { WebsocketService } from 'src/app/services/websocket.service'; @Component({ selector: 'app-block', @@ -39,9 +40,11 @@ export class BlockComponent implements OnInit, OnDestroy { private electrsApiService: ElectrsApiService, private stateService: StateService, private seoService: SeoService, + private websocketService: WebsocketService, ) { } ngOnInit() { + this.websocketService.want(['blocks', 'mempool-blocks']); this.paginationMaxSize = window.matchMedia('(max-width: 700px)').matches ? 3 : 5; this.network = this.stateService.network; diff --git a/frontend/src/app/components/master-page/master-page.component.html b/frontend/src/app/components/master-page/master-page.component.html index 4f15e99c6..21afec088 100644 --- a/frontend/src/app/components/master-page/master-page.component.html +++ b/frontend/src/app/components/master-page/master-page.component.html @@ -29,7 +29,7 @@