aboutsummaryrefslogtreecommitdiffstats
path: root/lib/cpfp.ts
diff options
context:
space:
mode:
Diffstat (limited to 'lib/cpfp.ts')
-rw-r--r--lib/cpfp.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/cpfp.ts b/lib/cpfp.ts
index 20171acc..cb1bbcbf 100644
--- a/lib/cpfp.ts
+++ b/lib/cpfp.ts
@@ -293,7 +293,7 @@ export async function buildCpfpSend({
"payments:", paymentOutputs.length);
// Calculate User B's bump reserve for this child
- const fastestFee = Math.ceil(fees.fastestFee * 1.5);
+ const fastestFee = Math.max(Math.ceil(fees.fastestFee * 1.5), 4);
const childBumpReserve = calculateBumpReserve(feeRate, fastestFee, decoded.vsize);
return {