projects
/
rust-lightning
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Implement HandleError event with ErrorAction field
[rust-lightning]
/
src
/
util
/
events.rs
diff --git
a/src/util/events.rs
b/src/util/events.rs
index e8330b7e29ba9877449bda22641f6faa726c737b..589c4be10e61b331e6443ef4514a66e6d754af80 100644
(file)
--- a/
src/util/events.rs
+++ b/
src/util/events.rs
@@
-105,11
+105,11
@@
pub enum Event {
msg: msgs::ChannelUpdate,
},
msg: msgs::ChannelUpdate,
},
- //
Events indicating the network loop should change the state of connection with peer:
- ///
Disconnect the given peer, possibly making an attempt to send an ErrorMessage first.
-
DisconnectPeer
{
+ //
Error handling
+ ///
Broadcast an error downstream to be handled
+
HandleError
{
node_id: PublicKey,
node_id: PublicKey,
- msg: Option<msgs::ErrorMessage>,
+ action: Option<msgs::ErrorAction>
}
}
}
}