From: Yuntai Kyong Date: Wed, 29 Aug 2018 04:00:34 +0000 (+0900) Subject: Fix test for ChannelReestablish X-Git-Tag: v0.0.12~336^2~1 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=5d923e2a634351e285292466a8d84d2848c39980;p=rust-lightning Fix test for ChannelReestablish --- diff --git a/src/ln/msgs.rs b/src/ln/msgs.rs index 66bbc9d17..de6750af5 100644 --- a/src/ln/msgs.rs +++ b/src/ln/msgs.rs @@ -1664,13 +1664,13 @@ mod tests { next_local_commitment_number: 3, next_remote_commitment_number: 4, your_last_per_commitment_secret: None, - my_current_per_commitment_point: public_key, + my_current_per_commitment_point: None, }; let encoded_value = cr.encode(); assert_eq!( encoded_value, - vec![4, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 4, 3, 27, 132, 197, 86, 123, 18, 100, 64, 153, 93, 62, 213, 170, 186, 5, 101, 215, 30, 24, 52, 96, 72, 25, 255, 156, 23, 245, 233, 213, 221, 7, 143] + vec![4, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 4] ); } @@ -1686,7 +1686,7 @@ mod tests { next_local_commitment_number: 3, next_remote_commitment_number: 4, your_last_per_commitment_secret: Some([9; 32]), - my_current_per_commitment_point: public_key, + my_current_per_commitment_point: Some(public_key), }; let encoded_value = cr.encode();