Use BLOCK_WEIGHT_UNITS instead of hard coded block size limit in all occations.

This commit is contained in:
softsimon
2021-08-08 04:19:54 +03:00
parent c6b1979391
commit 7ef4be26ed
5 changed files with 5 additions and 5 deletions

View File

@@ -88,7 +88,7 @@
<td class="table-cell-transaction-count">{{ block.tx_count | number }}</td>
<td class="table-cell-size">
<div class="progress">
<div class="progress-bar progress-mempool {{ network$ | async }}" role="progressbar" [ngStyle]="{'width': (block.weight / 4000000)*100 + '%' }">&nbsp;</div>
<div class="progress-bar progress-mempool {{ network$ | async }}" role="progressbar" [ngStyle]="{'width': (block.weight / stateService.env.BLOCK_WEIGHT_UNITS)*100 + '%' }">&nbsp;</div>
<div class="progress-text" [innerHTML]="block.size | bytes: 2"></div>
</div>
</td>