1 // This file is auto-generated by gen_target.sh based on msg_target_template.txt
2 // To modify it, modify msg_target_template.txt and run gen_target.sh instead.
4 extern crate lightning;
6 use lightning::ln::msgs;
7 use lightning::util::reset_rng_state;
9 use lightning::ln::msgs::{MsgEncodable, MsgDecodable};
14 pub fn do_test(data: &[u8]) {
16 test_msg!(msgs::AcceptChannel, data);
19 #[cfg(feature = "afl")]
21 #[cfg(feature = "afl")]
23 afl::read_stdio_bytes(|data| {
28 #[cfg(feature = "honggfuzz")]
29 #[macro_use] extern crate honggfuzz;
30 #[cfg(feature = "honggfuzz")]
41 use utils::extend_vec_from_hex;
43 fn duplicate_crash() {
44 let mut a = Vec::new();
45 extend_vec_from_hex("00", &mut a);