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

@@ -1,2 +1,2 @@
<span *ngIf="multisig" class="badge badge-pill badge-warning">multisig {{ multisigM }} of {{ multisigN }}</span>
<span *ngIf="secondLayerClose" class="badge badge-pill badge-warning">Layer2 Peg-out</span>
<span *ngIf="secondLayerClose" class="badge badge-pill badge-warning">Layer{{ network === 'liquid' ? '3' : '2' }} Peg-out</span>

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) {