Transition new blocks from the mempool onto the blockchain.

Chime on new blocks.
fixes #47
fixes #84
This commit is contained in:
softsimon
2020-06-10 23:52:14 +07:00
parent 7801fa7a24
commit e0a451eb05
22 changed files with 124 additions and 60 deletions

View File

@@ -22,7 +22,7 @@ export class TransactionsListComponent implements OnInit, OnChanges {
@Output() loadMore = new EventEmitter();
latestBlock$: Observable<Block>;
latestBlock: Block;
outspends: Outspend[] = [];
assetsMinimal: any;
@@ -34,7 +34,7 @@ export class TransactionsListComponent implements OnInit, OnChanges {
) { }
ngOnInit() {
this.latestBlock$ = this.stateService.blocks$;
this.stateService.blocks$.subscribe(([block]) => this.latestBlock = block);
this.stateService.networkChanged$.subscribe((network) => this.network = network);
if (this.network === 'liquid') {