Merge branch 'esplora'

* esplora:
  Adding optional Blockstream esplora backend support.
This commit is contained in:
Simon Lindh
2019-10-22 17:28:56 +08:00
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);
});