Set associated_data to payment_hash
[rust-lightning] / src / util / events.rs
index c2c3ab6a1a71c0ce813dce3eb500e5a94fe53977..fd801e4111ed6f3c6b58dcea72f0c7ff1534b116 100644 (file)
@@ -104,6 +104,13 @@ pub enum Event {
        BroadcastChannelUpdate {
                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  {
+               node_id: PublicKey,
+               msg: Option<msgs::ErrorMessage>,
+       }
 }
 
 pub trait EventsProvider {