X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=src%2Futil%2Fevents.rs;h=589c4be10e61b331e6443ef4514a66e6d754af80;hb=4330ae5d4f1fefeb7f211360354fb04eb8480351;hp=e8330b7e29ba9877449bda22641f6faa726c737b;hpb=fe9bb1d97028d1c0c98972809d12e7129d18356d;p=rust-lightning diff --git a/src/util/events.rs b/src/util/events.rs index e8330b7e..589c4be1 100644 --- a/src/util/events.rs +++ b/src/util/events.rs @@ -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, + action: Option } }