2020-02-16 16:15:07 +01:00
|
|
|
<div class="mempool-blocks-container">
|
2020-02-23 21:42:29 +01:00
|
|
|
<div class="flashing">
|
|
|
|
<div *ngFor="let projectedBlock of mempoolBlocks; let i = index; trackBy: trackByFn">
|
|
|
|
<div class="bitcoin-block text-center mempool-block" id="mempool-block-{{ i }}" [ngStyle]="getStyleForMempoolBlockAtIndex(i)">
|
2020-03-17 15:53:20 +01:00
|
|
|
<a [routerLink]="['/mempool-block/', i]" class="blockLink"> </a>
|
2020-02-23 21:42:29 +01:00
|
|
|
<div class="block-body" *ngIf="mempoolBlocks?.length">
|
|
|
|
<div class="fees">
|
2020-04-11 18:23:39 +02:00
|
|
|
<span class="yellow-color">~{{ projectedBlock.medianFee | number:'1.0-0' }} sat/vB</span>
|
2020-02-23 21:42:29 +01:00
|
|
|
</div>
|
|
|
|
<div class="block-size">{{ projectedBlock.blockSize | bytes: 2 }}</div>
|
2020-04-11 18:23:39 +02:00
|
|
|
<div class="transaction-count">{{ projectedBlock.nTx | number }} transactions</div>
|
2020-03-25 15:29:40 +01:00
|
|
|
<div class="time-difference" *ngIf="projectedBlock.blockVSize < 1000000">
|
|
|
|
<ng-template [ngIf]="network === 'liquid'" [ngIfElse]="timeDiffMainnet">
|
|
|
|
In < {{ 1 * i + 1 }} minute
|
|
|
|
</ng-template>
|
|
|
|
<ng-template #timeDiffMainnet>
|
|
|
|
In ~{{ 10 * i + 10 }} minutes
|
|
|
|
</ng-template>
|
|
|
|
</div>
|
2020-03-12 15:56:07 +01:00
|
|
|
<ng-template [ngIf]="i === mempoolBlocks.length - 1 && projectedBlock.blockVSize >= 1000000">
|
2020-02-23 21:42:29 +01:00
|
|
|
<div class="time-difference">+{{ projectedBlock.blockVSize / 1000000 | ceil }} blocks</div>
|
|
|
|
</ng-template>
|
2020-02-16 16:15:07 +01:00
|
|
|
</div>
|
2020-02-23 21:42:29 +01:00
|
|
|
<span class="animated-border"></span>
|
2020-02-16 16:15:07 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-03-20 21:38:18 +01:00
|
|
|
<div *ngIf="arrowVisible" id="arrow-up" [ngStyle]="{'right': rightPosition + 75 + 'px', transition: transition }"></div>
|
2020-02-16 16:15:07 +01:00
|
|
|
</div>
|