Merge pull request #74 from TheBlueMatt/2018-07-shutdown-event
[rust-lightning] / fuzz / fuzz_targets / msg_targets / msg_funding_locked_target.rs
index d3570b7ef1b5081f94c4da005be94c003954027c..00fdef3f82d572fd139ccad7f4025643d5a55368 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::FundingLocked, data, read_pos);
-       }
+       test_msg!(msgs::FundingLocked, data);
 }
 
 #[cfg(feature = "afl")]