X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=lightning%2Fsrc%2Fln%2Fmsgs.rs;h=d32eb3e4743c460707d2d48b00a195b1f313fc68;hb=8fd8966b9a7e798184c89acf7a4a9789c309f735;hp=39cb9454db89a541ac5f039e8aa11d9d09ab8854;hpb=f569e9f8024ac4766fbd0c58959a215f77d8bac5;p=rust-lightning diff --git a/lightning/src/ln/msgs.rs b/lightning/src/ln/msgs.rs index 39cb9454..d32eb3e4 100644 --- a/lightning/src/ln/msgs.rs +++ b/lightning/src/ln/msgs.rs @@ -1137,6 +1137,11 @@ pub enum ErrorAction { /// An error message which we should make an effort to send before we disconnect. msg: Option }, + /// The peer did something incorrect. Tell them without closing any channels and disconnect them. + DisconnectPeerWithWarning { + /// A warning message which we should make an effort to send before we disconnect. + msg: WarningMessage, + }, /// The peer did something harmless that we weren't able to process, just log and ignore // New code should *not* use this. New code must use IgnoreAndLog, below! IgnoreError, @@ -1738,7 +1743,7 @@ impl Readable for Init { (3, remote_network_address, option) }); Ok(Init { - features: features.or(global_features), + features: features | global_features, remote_network_address, }) }