]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Remove unused test variable left orphaned by 5d923e2a634351e2852924
authorMatt Corallo <git@bluematt.me>
Wed, 29 Aug 2018 18:30:32 +0000 (14:30 -0400)
committerMatt Corallo <git@bluematt.me>
Wed, 29 Aug 2018 21:54:57 +0000 (17:54 -0400)
src/ln/msgs.rs

index f696b024fd91d52e0f18184c610bac6d22e0d87a..6a005f528c45773bdc20e1edc4e2d599ee829d65 100644 (file)
@@ -1657,11 +1657,6 @@ mod tests {
 
        #[test]
        fn encoding_channel_reestablish_no_secret() {
-               let public_key = {
-                       let secp_ctx = Secp256k1::new();
-                       PublicKey::from_secret_key(&secp_ctx, &SecretKey::from_slice(&secp_ctx, &hex::decode("0101010101010101010101010101010101010101010101010101010101010101").unwrap()[..]).unwrap())
-               };
-
                let cr = msgs::ChannelReestablish {
                        channel_id: [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],
                        next_local_commitment_number: 3,