Calculate tx fees based on segwit tx sizes.
This commit is contained in:
parent
5feaff130f
commit
fcb51fef20
@ -43,7 +43,7 @@
|
|||||||
<tbody>
|
<tbody>
|
||||||
<tr *ngIf="block.medianFee !== undefined">
|
<tr *ngIf="block.medianFee !== undefined">
|
||||||
<td class="td-width">Median fee</td>
|
<td class="td-width">Median fee</td>
|
||||||
<td>~{{ block.medianFee | number:'1.0-0' }} sat/vB (<app-fiat [value]="block.medianFee * 250" digitsInfo="1.2-2"></app-fiat>)</td>
|
<td>~{{ block.medianFee | number:'1.0-0' }} sat/vB (<app-fiat [value]="block.medianFee * 140" digitsInfo="1.2-2" ngbTooltip="Based on average native segwit transaction of 140 vBytes" placement="bottom"></app-fiat>)</td>
|
||||||
</tr>
|
</tr>
|
||||||
<ng-template [ngIf]="fees !== undefined" [ngIfElse]="loadingFees">
|
<ng-template [ngIf]="fees !== undefined" [ngIfElse]="loadingFees">
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -3,19 +3,19 @@
|
|||||||
<td class="d-none d-md-block">
|
<td class="d-none d-md-block">
|
||||||
<h5 class="card-title">Low priority</h5>
|
<h5 class="card-title">Low priority</h5>
|
||||||
<p class="card-text">
|
<p class="card-text">
|
||||||
{{ feeEstimations.hourFee }} sat/vB (<app-fiat [value]="feeEstimations.hourFee * 250"></app-fiat>)
|
{{ feeEstimations.hourFee }} sat/vB (<app-fiat [value]="feeEstimations.hourFee * 140" ngbTooltip="Based on average native segwit transaction of 140 vBytes" placement="bottom"></app-fiat>)
|
||||||
</p>
|
</p>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<h5 class="card-title">Medium priority</h5>
|
<h5 class="card-title">Medium priority</h5>
|
||||||
<p class="card-text">
|
<p class="card-text">
|
||||||
{{ feeEstimations.halfHourFee }} sat/vB (<app-fiat [value]="feeEstimations.halfHourFee * 250"></app-fiat>)
|
{{ feeEstimations.halfHourFee }} sat/vB (<app-fiat [value]="feeEstimations.halfHourFee * 140" ngbTooltip="Based on average native segwit transaction of 140 vBytes" placement="bottom"></app-fiat>)
|
||||||
</p>
|
</p>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<h5 class="card-title">High priority</h5>
|
<h5 class="card-title">High priority</h5>
|
||||||
<p class="card-text">
|
<p class="card-text">
|
||||||
{{ feeEstimations.fastestFee }} sat/vB (<app-fiat [value]="feeEstimations.fastestFee * 250"></app-fiat>)
|
{{ feeEstimations.fastestFee }} sat/vB (<app-fiat [value]="feeEstimations.fastestFee * 140" ngbTooltip="Based on average native segwit transaction of 140 vBytes" placement="bottom"></app-fiat>)
|
||||||
</p>
|
</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Median fee</td>
|
<td>Median fee</td>
|
||||||
<td>~{{ mempoolBlock.medianFee | number:'1.0-0' }} sat/vB (<app-fiat [value]="mempoolBlock.medianFee * 250" digitsInfo="1.2-2"></app-fiat>)</td>
|
<td>~{{ mempoolBlock.medianFee | number:'1.0-0' }} sat/vB (<app-fiat [value]="mempoolBlock.medianFee * 140" digitsInfo="1.2-2" ngbTooltip="Based on average native segwit transaction of 140 vBytes" placement="bottom"></app-fiat>)</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Fee span</td>
|
<td>Fee span</td>
|
||||||
|
@ -169,7 +169,7 @@
|
|||||||
</ng-template>
|
</ng-template>
|
||||||
|
|
||||||
<ng-template #txPerSecond let-mempoolInfoData>
|
<ng-template #txPerSecond let-mempoolInfoData>
|
||||||
<h5 class="card-title">Tx vBytes per second</h5>
|
<h5 class="card-title">Incoming transactions</h5>
|
||||||
<ng-template [ngIf]="mempoolInfoData.value" [ngIfElse]="loading">
|
<ng-template [ngIf]="mempoolInfoData.value" [ngIfElse]="loading">
|
||||||
<span *ngIf="mempoolInfoData.value.vBytesPerSecond === 0; else inSync">
|
<span *ngIf="mempoolInfoData.value.vBytesPerSecond === 0; else inSync">
|
||||||
<span class="badge badge-pill badge-warning">Backend is synchronizing</span>
|
<span class="badge badge-pill badge-warning">Backend is synchronizing</span>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user