Re-fixing bug where high priority fee could display as lower than the medium and low fee.

fixes #278
This commit is contained in:
softsimon
2021-02-24 12:30:40 +07:00
parent 619eee9492
commit 6ec07e5315
2 changed files with 2 additions and 2 deletions

View File

@@ -34,7 +34,7 @@ class FeeApi {
if (pBlock.blockVSize <= 500000) {
return this.defaultFee;
}
if (pBlock.blockVSize <= 950000 && nextBlock) {
if (pBlock.blockVSize <= 950000 && !nextBlock) {
const multiplier = (pBlock.blockVSize - 500000) / 500000;
return Math.max(Math.round(useFee * multiplier), this.defaultFee);
}