Adding optional Blockstream esplora backend support.

This commit is contained in:
Simon Lindh
2019-10-22 17:09:07 +08:00
parent 64e97b6f1f
commit afb3ecc57d
12 changed files with 1361 additions and 33 deletions

View File

@@ -22,6 +22,9 @@ export class BlockchainBlocksComponent implements OnInit, OnDestroy {
ngOnInit() {
this.blocksSubscription = this.memPoolService.blocks$
.subscribe((block) => {
if (this.blocks.some((b) => b.height === block.height)) {
return;
}
this.blocks.unshift(block);
this.blocks = this.blocks.slice(0, 8);
});