From: Matt Corallo Date: Fri, 17 Aug 2018 17:22:44 +0000 (-0400) Subject: Ignore unknown channel flags as required in BOLT 2 X-Git-Tag: v0.0.12~347^2 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=1360fccd7143937278f880497634eb284da834ce;p=rust-lightning Ignore unknown channel flags as required in BOLT 2 --- diff --git a/src/ln/channel.rs b/src/ln/channel.rs index d7729a1ec..b2164696f 100644 --- a/src/ln/channel.rs +++ b/src/ln/channel.rs @@ -518,9 +518,6 @@ impl Channel { if msg.max_accepted_htlcs > 483 { return_error_message!("max_accpted_htlcs > 483"); } - if (msg.channel_flags & 254) != 0 { - return Err(HandleError{err: "Unknown channel flags", action: Some(msgs::ErrorAction::IgnoreError) }); - } // Convert things into internal flags and prep our state: