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

@@ -56,7 +56,7 @@ export class TxFeeRatingComponent implements OnInit, OnChanges, OnDestroy {
this.medianFeeNeeded = block.medianFee;
// Block not filled
if (block.weight < 4000000 * 0.95) {
if (block.weight < this.stateService.env.BLOCK_WEIGHT_UNITS * 0.95) {
this.medianFeeNeeded = 1;
}