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 ea708de9fb
commit 36e46249b5
22 changed files with 124 additions and 60 deletions

View File

@@ -1,5 +1,6 @@
import { Component, OnInit, ChangeDetectionStrategy, Input } from '@angular/core';
import { Vin, Vout } from '../../interfaces/electrs.interface';
import { StateService } from 'src/app/services/state.service';
@Component({
selector: 'app-address-labels',
@@ -8,6 +9,7 @@ import { Vin, Vout } from '../../interfaces/electrs.interface';
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class AddressLabelsComponent implements OnInit {
network = '';
@Input() vin: Vin;
@Input() vout: Vout;
@@ -18,7 +20,11 @@ export class AddressLabelsComponent implements OnInit {
secondLayerClose = false;
constructor() { }
constructor(
stateService: StateService,
) {
this.network = stateService.network;
}
ngOnInit() {
if (this.vin) {