Add deserialize+load steps to chanmon_fail_consistency (fixes #327)
[rust-lightning] / src / ln / msgs.rs
index 6c910865388d965e69f7c92ba6f91d10d5e9d04a..12bed996878dff27145e33654f92391975604a20 100644 (file)
@@ -94,6 +94,7 @@ impl LocalFeatures {
        pub(crate) fn supports_upfront_shutdown_script(&self) -> bool {
                self.flags.len() > 0 && (self.flags[0] & (3 << 4)) != 0
        }
+       #[cfg(test)]
        pub(crate) fn unset_upfront_shutdown_script(&mut self) {
                self.flags[0] ^= 1 << 4;
        }