Merge pull request #90 from TheBlueMatt/2018-07-percent-bump
[rust-lightning] / fuzz / fuzz_targets / msg_targets / msg_revoke_and_ack_target.rs
index 495a9ca45f707ac729fefcfa4231ad2294682a8b..de7e9314118b265612590051bf7358c29818e0ef 100644 (file)
@@ -1,3 +1,6 @@
+// This file is auto-generated by gen_target.sh based on msg_target_template.txt
+// To modify it, modify msg_target_template.txt and run gen_target.sh instead.
+
 extern crate lightning;
 
 use lightning::ln::msgs;
@@ -6,15 +9,11 @@ use lightning::util::reset_rng_state;
 use lightning::ln::msgs::{MsgEncodable, MsgDecodable};
 
 mod utils;
-use utils::slice_to_be16;
 
 #[inline]
 pub fn do_test(data: &[u8]) {
        reset_rng_state();
-       let mut read_pos = 0;
-       loop {
-               test_msg!(msgs::RevokeAndACK, data, read_pos);
-       }
+       test_msg!(msgs::RevokeAndACK, data);
 }
 
 #[cfg(feature = "afl")]