We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents fdaa759 + 02208ab commit 65f49afCopy full SHA for 65f49af
1 file changed
src/fee_estimator.rs
@@ -150,6 +150,17 @@ pub(crate) fn apply_post_estimation_adjustments(
150
.max(FEERATE_FLOOR_SATS_PER_KW as u64);
151
FeeRate::from_sat_per_kwu(slightly_less_than_background)
152
},
153
+ ConfirmationTarget::Lightning(LdkConfirmationTarget::MaximumFeeEstimate) => {
154
+ // MaximumFeeEstimate is mostly used for protection against fee-inflation attacks. As
155
+ // users were previously impacted by this limit being too restrictive (read: too low),
156
+ // we bump it here a bit to give them some leeway.
157
+ let slightly_bump = estimated_rate
158
+ .to_sat_per_kwu()
159
+ .saturating_mul(11)
160
+ .saturating_div(10)
161
+ .saturating_add(2500);
162
+ FeeRate::from_sat_per_kwu(slightly_bump)
163
+ },
164
_ => estimated_rate,
165
}
166
0 commit comments