@@ -5660,7 +5660,7 @@ impl<Signer: Sign, M: Deref , T: Deref , K: Deref , F: Deref , L: Deref >
5660
5660
let _ = handle_error ! ( self , self . internal_channel_reestablish( counterparty_node_id, msg) , * counterparty_node_id) ;
5661
5661
}
5662
5662
5663
- fn peer_disconnected ( & self , counterparty_node_id : & PublicKey , _no_connection_possible : bool ) {
5663
+ fn peer_disconnected ( & self , counterparty_node_id : & PublicKey , no_connection_possible : bool ) {
5664
5664
let _persistence_guard = PersistenceNotifierGuard :: notify_on_drop ( & self . total_consistency_lock , & self . persistence_notifier ) ;
5665
5665
let mut failed_channels = Vec :: new ( ) ;
5666
5666
let mut no_channels_remain = true ;
@@ -5669,7 +5669,8 @@ impl<Signer: Sign, M: Deref , T: Deref , K: Deref , F: Deref , L: Deref >
5669
5669
let channel_state = & mut * channel_state_lock;
5670
5670
let pending_msg_events = & mut channel_state. pending_msg_events ;
5671
5671
let short_to_id = & mut channel_state. short_to_id ;
5672
- log_debug ! ( self . logger, "Marking channels with {} disconnected and generating channel_updates" , log_pubkey!( counterparty_node_id) ) ;
5672
+ log_debug ! ( self . logger, "Marking channels with {} disconnected and generating channel_updates. We believe we {} make future connections to this peer." ,
5673
+ log_pubkey!( counterparty_node_id) , if no_connection_possible { "cannot" } else { "can" } ) ;
5673
5674
channel_state. by_id . retain ( |_, chan| {
5674
5675
if chan. get_counterparty_node_id ( ) == * counterparty_node_id {
5675
5676
chan. remove_uncommitted_htlcs_and_mark_paused ( & self . logger ) ;
0 commit comments