Fix test for ChannelReestablish
authorYuntai Kyong <yuntai.kyong@gmail.com>
Wed, 29 Aug 2018 04:00:34 +0000 (13:00 +0900)
committerYuntai Kyong <yuntai.kyong@gmail.com>
Wed, 29 Aug 2018 04:00:34 +0000 (13:00 +0900)
src/ln/msgs.rs

index 66bbc9d1700d13810f399978e3a70cf117eeae23..de6750af57d191dd5ad0b1fd47c8f2cd3f373518 100644 (file)
@@ -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();