@@ -2703,6 +2703,7 @@ impl ChannelMessageHandler for ChannelManager {
2703
2703
let short_to_id = channel_state. short_to_id ;
2704
2704
let pending_msg_events = channel_state. pending_msg_events ;
2705
2705
if no_connection_possible {
2706
+ log_debug ! ( self , "Failing all channels with {} due to no_connection_possible" , log_pubkey!( their_node_id) ) ;
2706
2707
channel_state. by_id . retain ( |_, chan| {
2707
2708
if chan. get_their_node_id ( ) == * their_node_id {
2708
2709
if let Some ( short_id) = chan. get_short_channel_id ( ) {
@@ -2720,6 +2721,7 @@ impl ChannelMessageHandler for ChannelManager {
2720
2721
}
2721
2722
} ) ;
2722
2723
} else {
2724
+ log_debug ! ( self , "Marking channels with {} disconnected and generating channel_updates" , log_pubkey!( their_node_id) ) ;
2723
2725
channel_state. by_id . retain ( |_, chan| {
2724
2726
if chan. get_their_node_id ( ) == * their_node_id {
2725
2727
//TODO: mark channel disabled (and maybe announce such after a timeout).
@@ -2750,6 +2752,8 @@ impl ChannelMessageHandler for ChannelManager {
2750
2752
}
2751
2753
2752
2754
fn peer_connected ( & self , their_node_id : & PublicKey ) {
2755
+ log_debug ! ( self , "Generating channel_reestablish events for {}" , log_pubkey!( their_node_id) ) ;
2756
+
2753
2757
let _ = self . total_consistency_lock . read ( ) . unwrap ( ) ;
2754
2758
let mut channel_state_lock = self . channel_state . lock ( ) . unwrap ( ) ;
2755
2759
let channel_state = channel_state_lock. borrow_parts ( ) ;
0 commit comments