Bugfixes.

This commit is contained in:
softsimon
2020-03-27 01:29:55 +07:00
parent 81839cb55f
commit ff756e7aa3
3 changed files with 8 additions and 2 deletions

View File

@@ -139,7 +139,7 @@ export class TransactionComponent implements OnInit, OnDestroy {
)
.subscribe((block) => {
const feePervByte = this.tx.fee / (this.tx.weight / 4);
this.medianFeeNeeded = block.feeRange[Math.round(block.feeRange.length * 0.5)];
this.medianFeeNeeded = Math.round(block.feeRange[Math.round(block.feeRange.length * 0.5)]);
// Block not filled
if (block.weight < 4000000 * 0.95) {