You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// If the channel is inbound and we detect a relevant feerate increase, we assume
2980
+
// that our counterparty, reasonably implemented, should send us an `update_fee`
2981
+
// soon. Monitoring this situation, we start an autoclose timer.
2982
+
let background_feerate = self.fee_estimator.get_est_sat_per_1000_weight(ConfirmationTarget::Background);
2983
+
if !chan.is_outbound(){
2984
+
if chan.maybe_trigger_autoclose_timer(chan.get_feerate(), new_feerate, background_feerate){
2985
+
return(true,NotifyOption::DoPersist,Ok(()));
2986
+
}else{
2987
+
return(true,NotifyOption::SkipPersist,Ok(()));
2988
+
}
2989
+
}
2980
2990
if !chan.is_live(){
2981
2991
log_trace!(self.logger,"Channel {} does not qualify for a feerate change from {} to {} as it cannot currently be updated (probably the peer is disconnected).",
0 commit comments