]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Ignore unknown channel flags as required in BOLT 2 2018-08-103-rebased
authorMatt Corallo <git@bluematt.me>
Fri, 17 Aug 2018 17:22:44 +0000 (13:22 -0400)
committerMatt Corallo <git@bluematt.me>
Fri, 17 Aug 2018 17:22:44 +0000 (13:22 -0400)
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: