Added mempool inSync property to backend. Display on frontend when not in sync and on't create statistics when not in sync.

fixes #29
This commit is contained in:
softsimon
2020-04-01 20:06:44 +07:00
parent 13b0674405
commit 2887a3f1c5
3 changed files with 31 additions and 9 deletions

View File

@@ -3,9 +3,14 @@
<div class="row text-center" *ngIf="memPoolInfo">
<div class="col d-none d-sm-block">
<span class="txPerSecond">Tx weight per second:</span>
<div class="progress sub-text">
<div class="progress-bar {{ progressClass }}" role="progressbar" [ngStyle]="{'width': progressWidth}">{{ memPoolInfo?.vBytesPerSecond | ceil | number }} vBytes/s</div>
</div>
<span class="" *ngIf="memPoolInfo?.vBytesPerSecond === 0; else inSync">
&nbsp;<span class="badge badge-pill badge-warning">Backend is synchronizing</span>
</span>
<ng-template #inSync>
<div class="progress sub-text">
<div class="progress-bar {{ progressClass }}" role="progressbar" [ngStyle]="{'width': progressWidth}">{{ memPoolInfo?.vBytesPerSecond | ceil | number }} vBytes/s</div>
</div>
</ng-template>
</div>
<div class="col">
<span class="unconfirmedTx">Unconfirmed<span class="extra-text"> transactions</span>:</span>