X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2Fln%2Fmsgs.rs;h=f6968c5d3a32dfd4b0b20915ee5db02839943efb;hb=c05e087c430e05934a5312342f886f9d19889b20;hp=a61ec562884d143e358ffbbaad842deeb137c137;hpb=19a0f8438d263d329883bb697e323e0263f3a70d;p=rust-lightning diff --git a/src/ln/msgs.rs b/src/ln/msgs.rs index a61ec562..f6968c5d 100644 --- a/src/ln/msgs.rs +++ b/src/ln/msgs.rs @@ -63,13 +63,13 @@ impl LocalFeatures { #[cfg(not(feature = "fuzztarget"))] pub(crate) fn new() -> LocalFeatures { LocalFeatures { - flags: vec![1 << 4], + flags: vec![1 << 5], } } #[cfg(feature = "fuzztarget")] pub fn new() -> LocalFeatures { LocalFeatures { - flags: vec![1 << 4], + flags: vec![1 << 5], } } @@ -96,7 +96,7 @@ impl LocalFeatures { } #[cfg(test)] pub(crate) fn unset_upfront_shutdown_script(&mut self) { - self.flags[0] ^= 1 << 4; + self.flags[0] ^= 1 << 5; } pub(crate) fn requires_unknown_bits(&self) -> bool { @@ -2018,9 +2018,9 @@ mod tests { target_value.append(&mut hex::decode("0000").unwrap()); } if initial_routing_sync { - target_value.append(&mut hex::decode("000118").unwrap()); + target_value.append(&mut hex::decode("000128").unwrap()); } else { - target_value.append(&mut hex::decode("000110").unwrap()); + target_value.append(&mut hex::decode("000120").unwrap()); } assert_eq!(encoded_value, target_value); }