projects
/
rust-lightning
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Implement ErrorMessage msg and ErrorAction::SendErrorMessage + fuzz test
[rust-lightning]
/
src
/
ln
/
peer_handler.rs
diff --git
a/src/ln/peer_handler.rs
b/src/ln/peer_handler.rs
index 754d457f7bfd778bf0c03c98b4d8dfb0aed09021..6c20316ed9ba5427bde7886999c2f4b526c750d5 100644
(file)
--- a/
src/ln/peer_handler.rs
+++ b/
src/ln/peer_handler.rs
@@
-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 });