mirror of
https://github.com/mempool/mempool.git
synced 2025-02-24 14:50:52 +01:00
Re-fixing bug where high priority fee could display as lower than the medium and low fee.
fixes #278
This commit is contained in:
parent
619eee9492
commit
6ec07e5315
2 changed files with 2 additions and 2 deletions
|
@ -34,7 +34,7 @@ class FeeApi {
|
||||||
if (pBlock.blockVSize <= 500000) {
|
if (pBlock.blockVSize <= 500000) {
|
||||||
return this.defaultFee;
|
return this.defaultFee;
|
||||||
}
|
}
|
||||||
if (pBlock.blockVSize <= 950000 && nextBlock) {
|
if (pBlock.blockVSize <= 950000 && !nextBlock) {
|
||||||
const multiplier = (pBlock.blockVSize - 500000) / 500000;
|
const multiplier = (pBlock.blockVSize - 500000) / 500000;
|
||||||
return Math.max(Math.round(useFee * multiplier), this.defaultFee);
|
return Math.max(Math.round(useFee * multiplier), this.defaultFee);
|
||||||
}
|
}
|
||||||
|
|
|
@ -58,7 +58,7 @@ export class FeesBoxComponent implements OnInit {
|
||||||
if (pBlock.blockVSize <= 500000) {
|
if (pBlock.blockVSize <= 500000) {
|
||||||
return this.defaultFee;
|
return this.defaultFee;
|
||||||
}
|
}
|
||||||
if (pBlock.blockVSize <= 950000 && nextBlock) {
|
if (pBlock.blockVSize <= 950000 && !nextBlock) {
|
||||||
const multiplier = (pBlock.blockVSize - 500000) / 500000;
|
const multiplier = (pBlock.blockVSize - 500000) / 500000;
|
||||||
return Math.max(Math.round(useFee * multiplier), this.defaultFee);
|
return Math.max(Math.round(useFee * multiplier), this.defaultFee);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue