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 committed 2021-02-24 12:30:40 +07:00
1 parent 619eee9492
commit 6ec07e5315
2 files changed
+2 -2

No files matched your search

+1 -1
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);
}