Effective fee could go below 0 due to rounding error. (#623)
fixes #606
This commit is contained in:
1 parent
d13e18a72a
commit
ecbd18087b
1 file changed
+1
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user