Ignore unknown channel flags as required in BOLT 2
[rust-lightning] / src / ln / channel.rs
index d7729a1eca8eb6103c2f9648836a892b307a99aa..b2164696f25897c48536ec64692730a1a1eb1d38 100644 (file)
@@ -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: