Implement ErrorMessage msg and ErrorAction::SendErrorMessage + fuzz test
[rust-lightning] / src / ln / peer_handler.rs
index 754d457f7bfd778bf0c03c98b4d8dfb0aed09021..6c20316ed9ba5427bde7886999c2f4b526c750d5 100644 (file)
@@ -302,6 +302,10 @@ impl<Descriptor: SocketDescriptor> PeerManager<Descriptor> {
                                                                                                        msgs::ErrorAction::IgnoreError => {
                                                                                                                continue;
                                                                                                        },
+                                                                                                       msgs::ErrorAction::SendErrorMessage { msg } => {
+                                                                                                               encode_and_send_msg!(msg, 17);
+                                                                                                               continue;
+                                                                                                       },
                                                                                                }
                                                                                        } else {
                                                                                                return Err(PeerHandleError{ no_connection_possible: false });