Adding optional Blockstream esplora backend support.
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user