We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c14297b commit 15c3e0eCopy full SHA for 15c3e0e
src/fee_estimator.rs
@@ -144,7 +144,10 @@ pub(crate) fn apply_post_estimation_adjustments(
144
ConfirmationTarget::Lightning(
145
LdkConfirmationTarget::MinAllowedNonAnchorChannelRemoteFee,
146
) => {
147
- let slightly_less_than_background = estimated_rate.to_sat_per_kwu() - 250;
+ let slightly_less_than_background = estimated_rate
148
+ .to_sat_per_kwu()
149
+ .saturating_sub(250)
150
+ .max(FEERATE_FLOOR_SATS_PER_KW as u64);
151
FeeRate::from_sat_per_kwu(slightly_less_than_background)
152
},
153
_ => estimated_rate,
0 commit comments