Skip to content

Commit c531cb4

Browse files
committed
Ensure handle_announcement_signatures always has a ErrorAction
1 parent 1661d3c commit c531cb4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ln/channelmanager.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1988,10 +1988,10 @@ impl ChannelMessageHandler for ChannelManager {
19881988
match channel_state.by_id.get_mut(&msg.channel_id) {
19891989
Some(chan) => {
19901990
if chan.get_their_node_id() != *their_node_id {
1991-
return Err(HandleError{err: "Got a message for a channel from the wrong node!", action: None})
1991+
return Err(HandleError{err: "Got a message for a channel from the wrong node!", action: Some(msgs::ErrorAction::IgnoreError) })
19921992
}
19931993
if !chan.is_usable() {
1994-
return Err(HandleError{err: "Got an announcement_signatures before we were ready for it", action: None });
1994+
return Err(HandleError{err: "Got an announcement_signatures before we were ready for it", action: Some(msgs::ErrorAction::IgnoreError) });
19951995
}
19961996

19971997
let our_node_id = self.get_our_node_id();
@@ -2013,7 +2013,7 @@ impl ChannelMessageHandler for ChannelManager {
20132013
contents: announcement,
20142014
}, self.get_channel_update(chan).unwrap()) // can only fail if we're not in a ready state
20152015
},
2016-
None => return Err(HandleError{err: "Failed to find corresponding channel", action: None})
2016+
None => return Err(HandleError{err: "Failed to find corresponding channel", action: Some(msgs::ErrorAction::IgnoreError)})
20172017
}
20182018
};
20192019
let mut pending_events = self.pending_events.lock().unwrap();

0 commit comments

Comments
 (0)