create separate service for short term tx & block caching

This commit is contained in:
Mononaut
2022-12-27 05:36:58 -06:00
parent b35fbbbbd9
commit 001d94dcef
9 changed files with 147 additions and 30 deletions

View File

@@ -46,6 +46,11 @@ export class StartComponent implements OnInit, OnDestroy {
this.chainTip = height;
this.updatePages();
});
this.markBlockSubscription = this.stateService.markBlock$.subscribe((mark) => {
if (mark?.blockHeight != null) {
this.scrollToBlock(mark.blockHeight);
}
});
this.stateService.blocks$
.subscribe((blocks: any) => {
if (this.stateService.network !== '') {