mirror of
https://github.com/mempool/mempool.git
synced 2025-01-19 05:34:03 +01:00
Effective fee could go below 0 due to rounding error. (#623)
fixes #606
This commit is contained in:
parent
d13e18a72a
commit
ecbd18087b
@ -105,7 +105,7 @@ export class Common {
|
|||||||
totalFees += tx.bestDescendant.fee;
|
totalFees += tx.bestDescendant.fee;
|
||||||
}
|
}
|
||||||
|
|
||||||
tx.effectiveFeePerVsize = totalFees / (totalWeight / 4);
|
tx.effectiveFeePerVsize = Math.max(1, totalFees / (totalWeight / 4));
|
||||||
tx.cpfpChecked = true;
|
tx.cpfpChecked = true;
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
Loading…
Reference in New Issue
Block a user