Skip to content

Commit fd5d84b

Browse files
committed
Slightly increase the allowed fee upper limit on remote update_fees
At least lnd is fairly aggressively high in their (non-anchor) fee estimation, running the risk of force-closure. Further, because we rely on a fee estimator we don't have full control over, we should not assume our users' fees are particularly conservative, and thus give our peers a lot of leeway.
1 parent f569988 commit fd5d84b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/src/ln/channel.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,7 @@ impl<Signer: Sign> Channel<Signer> {
676676
if feerate_per_kw < lower_limit {
677677
return Err(ChannelError::Close(format!("Peer's feerate much too low. Actual: {}. Our expected lower limit: {}", feerate_per_kw, lower_limit)));
678678
}
679-
let upper_limit = fee_estimator.get_est_sat_per_1000_weight(ConfirmationTarget::HighPriority) as u64 * 2;
679+
let upper_limit = fee_estimator.get_est_sat_per_1000_weight(ConfirmationTarget::HighPriority) as u64 * 4;
680680
if feerate_per_kw as u64 > upper_limit {
681681
return Err(ChannelError::Close(format!("Peer's feerate much too high. Actual: {}. Our expected upper limit: {}", feerate_per_kw, upper_limit)));
682682
}

0 commit comments

Comments
 (0)