X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=fuzz%2Fsrc%2Fmsg_targets%2Fmsg_channel_update.rs;h=7c7822e659513b28ce9ed17a082cd440cf2450b7;hb=9d35026cb647128ddf9f9f815d5e09e2d67a28bd;hp=d0326bfa4316aa74136c7d110fc9fcb3ad922258;hpb=6745aff9b682fddb544968ae11b2d92665b58da2;p=rust-lightning diff --git a/fuzz/src/msg_targets/msg_channel_update.rs b/fuzz/src/msg_targets/msg_channel_update.rs index d0326bfa..7c7822e6 100644 --- a/fuzz/src/msg_targets/msg_channel_update.rs +++ b/fuzz/src/msg_targets/msg_channel_update.rs @@ -1,18 +1,25 @@ +// This file is Copyright its original authors, visible in version control +// history. +// +// This file is licensed under the Apache License, Version 2.0 or the MIT license +// , at your option. +// You may not use this file except in accordance with one or both of these +// licenses. + // 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. -use lightning::ln::msgs; - use msg_targets::utils::VecWriter; use utils::test_logger; #[inline] pub fn msg_channel_update_test(data: &[u8], _out: Out) { - test_msg_exact!(msgs::ChannelUpdate, data); + test_msg_hole!(lightning::ln::msgs::ChannelUpdate, data, 108, 1); } #[no_mangle] pub extern "C" fn msg_channel_update_run(data: *const u8, datalen: usize) { let data = unsafe { std::slice::from_raw_parts(data, datalen) }; - test_msg_exact!(msgs::ChannelUpdate, data); + test_msg_hole!(lightning::ln::msgs::ChannelUpdate, data, 108, 1); }