Various fixes and design updates.

This commit is contained in:
Simon Lindh
2020-02-24 22:51:27 +07:00
committed by wiz
parent 76fd441e07
commit 90a1fcaf8d
14 changed files with 55 additions and 55 deletions

View File

@@ -64,7 +64,7 @@ class Blocks {
transactions.sort((a, b) => b.feePerVsize - a.feePerVsize);
block.medianFee = transactions.length ? this.median(transactions.map((tx) => tx.feePerVsize)) : 0;
block.feeRange = transactions.length ? this.getFeesInRange(transactions, 8) : [];
block.feeRange = transactions.length ? this.getFeesInRange(transactions, 8) : [0, 0];
this.blocks.push(block);
if (this.blocks.length > config.KEEP_BLOCK_AMOUNT) {