Enable wumbo channels to be created
[rust-lightning] / lightning / src / ln / features.rs
index 57d1d427f1793450781f874f2c8786b12e8760c6..2580874640e438e611bea9b88ddda0384dc9db5d 100644 (file)
@@ -743,6 +743,15 @@ impl<T: sealed::ShutdownAnySegwit> Features<T> {
                self
        }
 }
+
+impl<T: sealed::Wumbo> Features<T> {
+       #[cfg(test)]
+       pub(crate) fn clear_wumbo(mut self) -> Self {
+               <T as sealed::Wumbo>::clear_bits(&mut self.flags);
+               self
+       }
+}
+
 macro_rules! impl_feature_len_prefixed_write {
        ($features: ident) => {
                impl Writeable for $features {