Add a `payment_metadata` field to `RecipientOnionFields`
[rust-lightning] / lightning / src / ln / features.rs
index 47e1cbcc4cba67295e5c2e2d954629a9695d399c..cf375603b37b5290aaf10250218f4b66cce0678a 100644 (file)
@@ -275,6 +275,7 @@ mod sealed {
                                        }
 
                                        flags[Self::BYTE_OFFSET] |= Self::REQUIRED_MASK;
+                                       flags[Self::BYTE_OFFSET] &= !Self::OPTIONAL_MASK;
                                }
 
                                /// Sets the feature's optional (odd) bit in the given flags.