mirror of
https://github.com/mempool/mempool.git
synced 2025-01-18 21:32:55 +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;
|
||||
}
|
||||
|
||||
tx.effectiveFeePerVsize = totalFees / (totalWeight / 4);
|
||||
tx.effectiveFeePerVsize = Math.max(1, totalFees / (totalWeight / 4));
|
||||
tx.cpfpChecked = true;
|
||||
|
||||
return {
|
||||
|
Loading…
Reference in New Issue
Block a user