Add DisconnectPeer events
[rust-lightning] / src / ln / msgs.rs
index e52a6d80bbd23f4eb809591f1b9eed08f7a27a11..53aa23972889e4f6734d1308b2c30a8ccc0119ad 100644 (file)
@@ -379,7 +379,9 @@ pub enum ErrorAction {
                msg: UpdateFailHTLC
        },
        /// The peer took some action which made us think they were useless. Disconnect them.
-       DisconnectPeer,
+       DisconnectPeer {
+               msg: Option<ErrorMessage>
+       },
        /// The peer did something harmless that we weren't able to process, just log and ignore
        IgnoreError,
        /// The peer did something incorrect. Tell them.