Implement HandleError event with ErrorAction field
[rust-lightning] / src / util / events.rs
index e8330b7e29ba9877449bda22641f6faa726c737b..589c4be10e61b331e6443ef4514a66e6d754af80 100644 (file)
@@ -105,11 +105,11 @@ pub enum Event {
                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,
-               msg: Option<msgs::ErrorMessage>,
+               action: Option<msgs::ErrorAction>
        }
 }