From: Matt Corallo Date: Fri, 1 Jul 2022 20:55:03 +0000 (+0000) Subject: [fuzz] Update auto-generated target list X-Git-Tag: v0.0.110~25^2~1 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=d246e613793e2a1ec016f75027ec6ef2e80f3418;p=rust-lightning [fuzz] Update auto-generated target list --- diff --git a/fuzz/src/msg_targets/mod.rs b/fuzz/src/msg_targets/mod.rs index dd1540ce5..67d66e23f 100644 --- a/fuzz/src/msg_targets/mod.rs +++ b/fuzz/src/msg_targets/mod.rs @@ -30,3 +30,4 @@ pub mod msg_reply_channel_range; pub mod msg_error_message; pub mod msg_warning_message; pub mod msg_channel_update; +pub mod msg_channel_details; diff --git a/fuzz/src/msg_targets/msg_accept_channel.rs b/fuzz/src/msg_targets/msg_accept_channel.rs index a8ec43878..1732bf2f7 100644 --- a/fuzz/src/msg_targets/msg_accept_channel.rs +++ b/fuzz/src/msg_targets/msg_accept_channel.rs @@ -10,18 +10,16 @@ // 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_accept_channel_test(data: &[u8], _out: Out) { - test_msg_simple!(msgs::AcceptChannel, data); + test_msg_simple!(lightning::ln::msgs::AcceptChannel, data); } #[no_mangle] pub extern "C" fn msg_accept_channel_run(data: *const u8, datalen: usize) { let data = unsafe { std::slice::from_raw_parts(data, datalen) }; - test_msg_simple!(msgs::AcceptChannel, data); + test_msg_simple!(lightning::ln::msgs::AcceptChannel, data); } diff --git a/fuzz/src/msg_targets/msg_announcement_signatures.rs b/fuzz/src/msg_targets/msg_announcement_signatures.rs index 0fc40fcb6..15e4e6d80 100644 --- a/fuzz/src/msg_targets/msg_announcement_signatures.rs +++ b/fuzz/src/msg_targets/msg_announcement_signatures.rs @@ -10,18 +10,16 @@ // 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_announcement_signatures_test(data: &[u8], _out: Out) { - test_msg_simple!(msgs::AnnouncementSignatures, data); + test_msg_simple!(lightning::ln::msgs::AnnouncementSignatures, data); } #[no_mangle] pub extern "C" fn msg_announcement_signatures_run(data: *const u8, datalen: usize) { let data = unsafe { std::slice::from_raw_parts(data, datalen) }; - test_msg_simple!(msgs::AnnouncementSignatures, data); + test_msg_simple!(lightning::ln::msgs::AnnouncementSignatures, data); } diff --git a/fuzz/src/msg_targets/msg_channel_announcement.rs b/fuzz/src/msg_targets/msg_channel_announcement.rs index 53ffe0eff..7a36520fb 100644 --- a/fuzz/src/msg_targets/msg_channel_announcement.rs +++ b/fuzz/src/msg_targets/msg_channel_announcement.rs @@ -10,18 +10,16 @@ // 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_announcement_test(data: &[u8], _out: Out) { - test_msg_exact!(msgs::ChannelAnnouncement, data); + test_msg_exact!(lightning::ln::msgs::ChannelAnnouncement, data); } #[no_mangle] pub extern "C" fn msg_channel_announcement_run(data: *const u8, datalen: usize) { let data = unsafe { std::slice::from_raw_parts(data, datalen) }; - test_msg_exact!(msgs::ChannelAnnouncement, data); + test_msg_exact!(lightning::ln::msgs::ChannelAnnouncement, data); } diff --git a/fuzz/src/msg_targets/msg_channel_details.rs b/fuzz/src/msg_targets/msg_channel_details.rs new file mode 100644 index 000000000..f448a7198 --- /dev/null +++ b/fuzz/src/msg_targets/msg_channel_details.rs @@ -0,0 +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 msg_targets::utils::VecWriter; +use utils::test_logger; + +#[inline] +pub fn msg_channel_details_test(data: &[u8], _out: Out) { + test_msg_simple!(lightning::ln::channelmanager::ChannelDetails, data); +} + +#[no_mangle] +pub extern "C" fn msg_channel_details_run(data: *const u8, datalen: usize) { + let data = unsafe { std::slice::from_raw_parts(data, datalen) }; + test_msg_simple!(lightning::ln::channelmanager::ChannelDetails, data); +} diff --git a/fuzz/src/msg_targets/msg_channel_ready.rs b/fuzz/src/msg_targets/msg_channel_ready.rs index e5f3b25c6..d95a86004 100644 --- a/fuzz/src/msg_targets/msg_channel_ready.rs +++ b/fuzz/src/msg_targets/msg_channel_ready.rs @@ -10,18 +10,16 @@ // 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_ready_test(data: &[u8], _out: Out) { - test_msg_simple!(msgs::ChannelReady, data); + test_msg_simple!(lightning::ln::msgs::ChannelReady, data); } #[no_mangle] pub extern "C" fn msg_channel_ready_run(data: *const u8, datalen: usize) { let data = unsafe { std::slice::from_raw_parts(data, datalen) }; - test_msg_simple!(msgs::ChannelReady, data); + test_msg_simple!(lightning::ln::msgs::ChannelReady, data); } diff --git a/fuzz/src/msg_targets/msg_channel_reestablish.rs b/fuzz/src/msg_targets/msg_channel_reestablish.rs index 7316bfbdf..2b934c00c 100644 --- a/fuzz/src/msg_targets/msg_channel_reestablish.rs +++ b/fuzz/src/msg_targets/msg_channel_reestablish.rs @@ -10,18 +10,16 @@ // 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_reestablish_test(data: &[u8], _out: Out) { - test_msg!(msgs::ChannelReestablish, data); + test_msg!(lightning::ln::msgs::ChannelReestablish, data); } #[no_mangle] pub extern "C" fn msg_channel_reestablish_run(data: *const u8, datalen: usize) { let data = unsafe { std::slice::from_raw_parts(data, datalen) }; - test_msg!(msgs::ChannelReestablish, data); + test_msg!(lightning::ln::msgs::ChannelReestablish, data); } diff --git a/fuzz/src/msg_targets/msg_channel_update.rs b/fuzz/src/msg_targets/msg_channel_update.rs index 1cd9ddbbf..7c7822e65 100644 --- a/fuzz/src/msg_targets/msg_channel_update.rs +++ b/fuzz/src/msg_targets/msg_channel_update.rs @@ -10,18 +10,16 @@ // 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_hole!(msgs::ChannelUpdate, data, 108, 1); + 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_hole!(msgs::ChannelUpdate, data, 108, 1); + test_msg_hole!(lightning::ln::msgs::ChannelUpdate, data, 108, 1); } diff --git a/fuzz/src/msg_targets/msg_closing_signed.rs b/fuzz/src/msg_targets/msg_closing_signed.rs index 52f39af29..f494acf62 100644 --- a/fuzz/src/msg_targets/msg_closing_signed.rs +++ b/fuzz/src/msg_targets/msg_closing_signed.rs @@ -10,18 +10,16 @@ // 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_closing_signed_test(data: &[u8], _out: Out) { - test_msg_simple!(msgs::ClosingSigned, data); + test_msg_simple!(lightning::ln::msgs::ClosingSigned, data); } #[no_mangle] pub extern "C" fn msg_closing_signed_run(data: *const u8, datalen: usize) { let data = unsafe { std::slice::from_raw_parts(data, datalen) }; - test_msg_simple!(msgs::ClosingSigned, data); + test_msg_simple!(lightning::ln::msgs::ClosingSigned, data); } diff --git a/fuzz/src/msg_targets/msg_commitment_signed.rs b/fuzz/src/msg_targets/msg_commitment_signed.rs index 163ce7446..63c38ce8e 100644 --- a/fuzz/src/msg_targets/msg_commitment_signed.rs +++ b/fuzz/src/msg_targets/msg_commitment_signed.rs @@ -10,18 +10,16 @@ // 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_commitment_signed_test(data: &[u8], _out: Out) { - test_msg_simple!(msgs::CommitmentSigned, data); + test_msg_simple!(lightning::ln::msgs::CommitmentSigned, data); } #[no_mangle] pub extern "C" fn msg_commitment_signed_run(data: *const u8, datalen: usize) { let data = unsafe { std::slice::from_raw_parts(data, datalen) }; - test_msg_simple!(msgs::CommitmentSigned, data); + test_msg_simple!(lightning::ln::msgs::CommitmentSigned, data); } diff --git a/fuzz/src/msg_targets/msg_decoded_onion_error_packet.rs b/fuzz/src/msg_targets/msg_decoded_onion_error_packet.rs index 92fb532e6..af4963245 100644 --- a/fuzz/src/msg_targets/msg_decoded_onion_error_packet.rs +++ b/fuzz/src/msg_targets/msg_decoded_onion_error_packet.rs @@ -10,18 +10,16 @@ // 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_decoded_onion_error_packet_test(data: &[u8], _out: Out) { - test_msg!(msgs::DecodedOnionErrorPacket, data); + test_msg!(lightning::ln::msgs::DecodedOnionErrorPacket, data); } #[no_mangle] pub extern "C" fn msg_decoded_onion_error_packet_run(data: *const u8, datalen: usize) { let data = unsafe { std::slice::from_raw_parts(data, datalen) }; - test_msg!(msgs::DecodedOnionErrorPacket, data); + test_msg!(lightning::ln::msgs::DecodedOnionErrorPacket, data); } diff --git a/fuzz/src/msg_targets/msg_error_message.rs b/fuzz/src/msg_targets/msg_error_message.rs index 7fba2c4dc..4a7007404 100644 --- a/fuzz/src/msg_targets/msg_error_message.rs +++ b/fuzz/src/msg_targets/msg_error_message.rs @@ -10,18 +10,16 @@ // 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_error_message_test(data: &[u8], _out: Out) { - test_msg_hole!(msgs::ErrorMessage, data, 32, 2); + test_msg_hole!(lightning::ln::msgs::ErrorMessage, data, 32, 2); } #[no_mangle] pub extern "C" fn msg_error_message_run(data: *const u8, datalen: usize) { let data = unsafe { std::slice::from_raw_parts(data, datalen) }; - test_msg_hole!(msgs::ErrorMessage, data, 32, 2); + test_msg_hole!(lightning::ln::msgs::ErrorMessage, data, 32, 2); } diff --git a/fuzz/src/msg_targets/msg_funding_created.rs b/fuzz/src/msg_targets/msg_funding_created.rs index e0005cb08..7fad86e74 100644 --- a/fuzz/src/msg_targets/msg_funding_created.rs +++ b/fuzz/src/msg_targets/msg_funding_created.rs @@ -10,18 +10,16 @@ // 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_funding_created_test(data: &[u8], _out: Out) { - test_msg_simple!(msgs::FundingCreated, data); + test_msg_simple!(lightning::ln::msgs::FundingCreated, data); } #[no_mangle] pub extern "C" fn msg_funding_created_run(data: *const u8, datalen: usize) { let data = unsafe { std::slice::from_raw_parts(data, datalen) }; - test_msg_simple!(msgs::FundingCreated, data); + test_msg_simple!(lightning::ln::msgs::FundingCreated, data); } diff --git a/fuzz/src/msg_targets/msg_funding_signed.rs b/fuzz/src/msg_targets/msg_funding_signed.rs index f0586e7b2..82886d639 100644 --- a/fuzz/src/msg_targets/msg_funding_signed.rs +++ b/fuzz/src/msg_targets/msg_funding_signed.rs @@ -10,18 +10,16 @@ // 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_funding_signed_test(data: &[u8], _out: Out) { - test_msg_simple!(msgs::FundingSigned, data); + test_msg_simple!(lightning::ln::msgs::FundingSigned, data); } #[no_mangle] pub extern "C" fn msg_funding_signed_run(data: *const u8, datalen: usize) { let data = unsafe { std::slice::from_raw_parts(data, datalen) }; - test_msg_simple!(msgs::FundingSigned, data); + test_msg_simple!(lightning::ln::msgs::FundingSigned, data); } diff --git a/fuzz/src/msg_targets/msg_gossip_timestamp_filter.rs b/fuzz/src/msg_targets/msg_gossip_timestamp_filter.rs index 448aaffc9..5c14a2416 100644 --- a/fuzz/src/msg_targets/msg_gossip_timestamp_filter.rs +++ b/fuzz/src/msg_targets/msg_gossip_timestamp_filter.rs @@ -10,18 +10,16 @@ // 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_gossip_timestamp_filter_test(data: &[u8], _out: Out) { - test_msg_simple!(msgs::GossipTimestampFilter, data); + test_msg_simple!(lightning::ln::msgs::GossipTimestampFilter, data); } #[no_mangle] pub extern "C" fn msg_gossip_timestamp_filter_run(data: *const u8, datalen: usize) { let data = unsafe { std::slice::from_raw_parts(data, datalen) }; - test_msg_simple!(msgs::GossipTimestampFilter, data); + test_msg_simple!(lightning::ln::msgs::GossipTimestampFilter, data); } diff --git a/fuzz/src/msg_targets/msg_init.rs b/fuzz/src/msg_targets/msg_init.rs index 4aa5c4a31..efa53a473 100644 --- a/fuzz/src/msg_targets/msg_init.rs +++ b/fuzz/src/msg_targets/msg_init.rs @@ -10,18 +10,16 @@ // 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_init_test(data: &[u8], _out: Out) { - test_msg_simple!(msgs::Init, data); + test_msg_simple!(lightning::ln::msgs::Init, data); } #[no_mangle] pub extern "C" fn msg_init_run(data: *const u8, datalen: usize) { let data = unsafe { std::slice::from_raw_parts(data, datalen) }; - test_msg_simple!(msgs::Init, data); + test_msg_simple!(lightning::ln::msgs::Init, data); } diff --git a/fuzz/src/msg_targets/msg_node_announcement.rs b/fuzz/src/msg_targets/msg_node_announcement.rs index 8f5751b9a..57c05145f 100644 --- a/fuzz/src/msg_targets/msg_node_announcement.rs +++ b/fuzz/src/msg_targets/msg_node_announcement.rs @@ -10,18 +10,16 @@ // 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_node_announcement_test(data: &[u8], _out: Out) { - test_msg_exact!(msgs::NodeAnnouncement, data); + test_msg_exact!(lightning::ln::msgs::NodeAnnouncement, data); } #[no_mangle] pub extern "C" fn msg_node_announcement_run(data: *const u8, datalen: usize) { let data = unsafe { std::slice::from_raw_parts(data, datalen) }; - test_msg_exact!(msgs::NodeAnnouncement, data); + test_msg_exact!(lightning::ln::msgs::NodeAnnouncement, data); } diff --git a/fuzz/src/msg_targets/msg_onion_hop_data.rs b/fuzz/src/msg_targets/msg_onion_hop_data.rs index 757f31619..d73523dc1 100644 --- a/fuzz/src/msg_targets/msg_onion_hop_data.rs +++ b/fuzz/src/msg_targets/msg_onion_hop_data.rs @@ -10,18 +10,16 @@ // 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_onion_hop_data_test(data: &[u8], _out: Out) { - test_msg_simple!(msgs::OnionHopData, data); + test_msg_simple!(lightning::ln::msgs::OnionHopData, data); } #[no_mangle] pub extern "C" fn msg_onion_hop_data_run(data: *const u8, datalen: usize) { let data = unsafe { std::slice::from_raw_parts(data, datalen) }; - test_msg_simple!(msgs::OnionHopData, data); + test_msg_simple!(lightning::ln::msgs::OnionHopData, data); } diff --git a/fuzz/src/msg_targets/msg_open_channel.rs b/fuzz/src/msg_targets/msg_open_channel.rs index ce637c167..2508fa353 100644 --- a/fuzz/src/msg_targets/msg_open_channel.rs +++ b/fuzz/src/msg_targets/msg_open_channel.rs @@ -10,18 +10,16 @@ // 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_open_channel_test(data: &[u8], _out: Out) { - test_msg_simple!(msgs::OpenChannel, data); + test_msg_simple!(lightning::ln::msgs::OpenChannel, data); } #[no_mangle] pub extern "C" fn msg_open_channel_run(data: *const u8, datalen: usize) { let data = unsafe { std::slice::from_raw_parts(data, datalen) }; - test_msg_simple!(msgs::OpenChannel, data); + test_msg_simple!(lightning::ln::msgs::OpenChannel, data); } diff --git a/fuzz/src/msg_targets/msg_ping.rs b/fuzz/src/msg_targets/msg_ping.rs index 7b44ae180..36d4d0d8a 100644 --- a/fuzz/src/msg_targets/msg_ping.rs +++ b/fuzz/src/msg_targets/msg_ping.rs @@ -10,18 +10,16 @@ // 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_ping_test(data: &[u8], _out: Out) { - test_msg_simple!(msgs::Ping, data); + test_msg_simple!(lightning::ln::msgs::Ping, data); } #[no_mangle] pub extern "C" fn msg_ping_run(data: *const u8, datalen: usize) { let data = unsafe { std::slice::from_raw_parts(data, datalen) }; - test_msg_simple!(msgs::Ping, data); + test_msg_simple!(lightning::ln::msgs::Ping, data); } diff --git a/fuzz/src/msg_targets/msg_pong.rs b/fuzz/src/msg_targets/msg_pong.rs index cff4a54fa..ea8a1bdd8 100644 --- a/fuzz/src/msg_targets/msg_pong.rs +++ b/fuzz/src/msg_targets/msg_pong.rs @@ -10,18 +10,16 @@ // 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_pong_test(data: &[u8], _out: Out) { - test_msg_simple!(msgs::Pong, data); + test_msg_simple!(lightning::ln::msgs::Pong, data); } #[no_mangle] pub extern "C" fn msg_pong_run(data: *const u8, datalen: usize) { let data = unsafe { std::slice::from_raw_parts(data, datalen) }; - test_msg_simple!(msgs::Pong, data); + test_msg_simple!(lightning::ln::msgs::Pong, data); } diff --git a/fuzz/src/msg_targets/msg_query_channel_range.rs b/fuzz/src/msg_targets/msg_query_channel_range.rs index 4b3de6aa8..75a2f042a 100644 --- a/fuzz/src/msg_targets/msg_query_channel_range.rs +++ b/fuzz/src/msg_targets/msg_query_channel_range.rs @@ -10,18 +10,16 @@ // 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_query_channel_range_test(data: &[u8], _out: Out) { - test_msg_simple!(msgs::QueryChannelRange, data); + test_msg_simple!(lightning::ln::msgs::QueryChannelRange, data); } #[no_mangle] pub extern "C" fn msg_query_channel_range_run(data: *const u8, datalen: usize) { let data = unsafe { std::slice::from_raw_parts(data, datalen) }; - test_msg_simple!(msgs::QueryChannelRange, data); + test_msg_simple!(lightning::ln::msgs::QueryChannelRange, data); } diff --git a/fuzz/src/msg_targets/msg_query_short_channel_ids.rs b/fuzz/src/msg_targets/msg_query_short_channel_ids.rs index 99cde1117..f536c7f4f 100644 --- a/fuzz/src/msg_targets/msg_query_short_channel_ids.rs +++ b/fuzz/src/msg_targets/msg_query_short_channel_ids.rs @@ -10,18 +10,16 @@ // 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_query_short_channel_ids_test(data: &[u8], _out: Out) { - test_msg!(msgs::QueryShortChannelIds, data); + test_msg!(lightning::ln::msgs::QueryShortChannelIds, data); } #[no_mangle] pub extern "C" fn msg_query_short_channel_ids_run(data: *const u8, datalen: usize) { let data = unsafe { std::slice::from_raw_parts(data, datalen) }; - test_msg!(msgs::QueryShortChannelIds, data); + test_msg!(lightning::ln::msgs::QueryShortChannelIds, data); } diff --git a/fuzz/src/msg_targets/msg_reply_channel_range.rs b/fuzz/src/msg_targets/msg_reply_channel_range.rs index d23b58a2d..0fd0ed634 100644 --- a/fuzz/src/msg_targets/msg_reply_channel_range.rs +++ b/fuzz/src/msg_targets/msg_reply_channel_range.rs @@ -10,18 +10,16 @@ // 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_reply_channel_range_test(data: &[u8], _out: Out) { - test_msg!(msgs::ReplyChannelRange, data); + test_msg!(lightning::ln::msgs::ReplyChannelRange, data); } #[no_mangle] pub extern "C" fn msg_reply_channel_range_run(data: *const u8, datalen: usize) { let data = unsafe { std::slice::from_raw_parts(data, datalen) }; - test_msg!(msgs::ReplyChannelRange, data); + test_msg!(lightning::ln::msgs::ReplyChannelRange, data); } diff --git a/fuzz/src/msg_targets/msg_reply_short_channel_ids_end.rs b/fuzz/src/msg_targets/msg_reply_short_channel_ids_end.rs index 7634329a4..712bb3ac4 100644 --- a/fuzz/src/msg_targets/msg_reply_short_channel_ids_end.rs +++ b/fuzz/src/msg_targets/msg_reply_short_channel_ids_end.rs @@ -10,18 +10,16 @@ // 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_reply_short_channel_ids_end_test(data: &[u8], _out: Out) { - test_msg_simple!(msgs::ReplyShortChannelIdsEnd, data); + test_msg_simple!(lightning::ln::msgs::ReplyShortChannelIdsEnd, data); } #[no_mangle] pub extern "C" fn msg_reply_short_channel_ids_end_run(data: *const u8, datalen: usize) { let data = unsafe { std::slice::from_raw_parts(data, datalen) }; - test_msg_simple!(msgs::ReplyShortChannelIdsEnd, data); + test_msg_simple!(lightning::ln::msgs::ReplyShortChannelIdsEnd, data); } diff --git a/fuzz/src/msg_targets/msg_revoke_and_ack.rs b/fuzz/src/msg_targets/msg_revoke_and_ack.rs index 873939ca7..cd3e64c36 100644 --- a/fuzz/src/msg_targets/msg_revoke_and_ack.rs +++ b/fuzz/src/msg_targets/msg_revoke_and_ack.rs @@ -10,18 +10,16 @@ // 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_revoke_and_ack_test(data: &[u8], _out: Out) { - test_msg_simple!(msgs::RevokeAndACK, data); + test_msg_simple!(lightning::ln::msgs::RevokeAndACK, data); } #[no_mangle] pub extern "C" fn msg_revoke_and_ack_run(data: *const u8, datalen: usize) { let data = unsafe { std::slice::from_raw_parts(data, datalen) }; - test_msg_simple!(msgs::RevokeAndACK, data); + test_msg_simple!(lightning::ln::msgs::RevokeAndACK, data); } diff --git a/fuzz/src/msg_targets/msg_shutdown.rs b/fuzz/src/msg_targets/msg_shutdown.rs index e6e74cc66..465d1e39e 100644 --- a/fuzz/src/msg_targets/msg_shutdown.rs +++ b/fuzz/src/msg_targets/msg_shutdown.rs @@ -10,18 +10,16 @@ // 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_shutdown_test(data: &[u8], _out: Out) { - test_msg_simple!(msgs::Shutdown, data); + test_msg_simple!(lightning::ln::msgs::Shutdown, data); } #[no_mangle] pub extern "C" fn msg_shutdown_run(data: *const u8, datalen: usize) { let data = unsafe { std::slice::from_raw_parts(data, datalen) }; - test_msg_simple!(msgs::Shutdown, data); + test_msg_simple!(lightning::ln::msgs::Shutdown, data); } diff --git a/fuzz/src/msg_targets/msg_update_add_htlc.rs b/fuzz/src/msg_targets/msg_update_add_htlc.rs index 409f0fac8..f031a4d89 100644 --- a/fuzz/src/msg_targets/msg_update_add_htlc.rs +++ b/fuzz/src/msg_targets/msg_update_add_htlc.rs @@ -10,18 +10,16 @@ // 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_update_add_htlc_test(data: &[u8], _out: Out) { - test_msg_simple!(msgs::UpdateAddHTLC, data); + test_msg_simple!(lightning::ln::msgs::UpdateAddHTLC, data); } #[no_mangle] pub extern "C" fn msg_update_add_htlc_run(data: *const u8, datalen: usize) { let data = unsafe { std::slice::from_raw_parts(data, datalen) }; - test_msg_simple!(msgs::UpdateAddHTLC, data); + test_msg_simple!(lightning::ln::msgs::UpdateAddHTLC, data); } diff --git a/fuzz/src/msg_targets/msg_update_fail_htlc.rs b/fuzz/src/msg_targets/msg_update_fail_htlc.rs index 12d3f1c3f..8d9dfedfc 100644 --- a/fuzz/src/msg_targets/msg_update_fail_htlc.rs +++ b/fuzz/src/msg_targets/msg_update_fail_htlc.rs @@ -10,18 +10,16 @@ // 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_update_fail_htlc_test(data: &[u8], _out: Out) { - test_msg_simple!(msgs::UpdateFailHTLC, data); + test_msg_simple!(lightning::ln::msgs::UpdateFailHTLC, data); } #[no_mangle] pub extern "C" fn msg_update_fail_htlc_run(data: *const u8, datalen: usize) { let data = unsafe { std::slice::from_raw_parts(data, datalen) }; - test_msg_simple!(msgs::UpdateFailHTLC, data); + test_msg_simple!(lightning::ln::msgs::UpdateFailHTLC, data); } diff --git a/fuzz/src/msg_targets/msg_update_fail_malformed_htlc.rs b/fuzz/src/msg_targets/msg_update_fail_malformed_htlc.rs index 0b36070d1..2635a4cb6 100644 --- a/fuzz/src/msg_targets/msg_update_fail_malformed_htlc.rs +++ b/fuzz/src/msg_targets/msg_update_fail_malformed_htlc.rs @@ -10,18 +10,16 @@ // 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_update_fail_malformed_htlc_test(data: &[u8], _out: Out) { - test_msg_simple!(msgs::UpdateFailMalformedHTLC, data); + test_msg_simple!(lightning::ln::msgs::UpdateFailMalformedHTLC, data); } #[no_mangle] pub extern "C" fn msg_update_fail_malformed_htlc_run(data: *const u8, datalen: usize) { let data = unsafe { std::slice::from_raw_parts(data, datalen) }; - test_msg_simple!(msgs::UpdateFailMalformedHTLC, data); + test_msg_simple!(lightning::ln::msgs::UpdateFailMalformedHTLC, data); } diff --git a/fuzz/src/msg_targets/msg_update_fee.rs b/fuzz/src/msg_targets/msg_update_fee.rs index 3c23a902f..b891a3631 100644 --- a/fuzz/src/msg_targets/msg_update_fee.rs +++ b/fuzz/src/msg_targets/msg_update_fee.rs @@ -10,18 +10,16 @@ // 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_update_fee_test(data: &[u8], _out: Out) { - test_msg_simple!(msgs::UpdateFee, data); + test_msg_simple!(lightning::ln::msgs::UpdateFee, data); } #[no_mangle] pub extern "C" fn msg_update_fee_run(data: *const u8, datalen: usize) { let data = unsafe { std::slice::from_raw_parts(data, datalen) }; - test_msg_simple!(msgs::UpdateFee, data); + test_msg_simple!(lightning::ln::msgs::UpdateFee, data); } diff --git a/fuzz/src/msg_targets/msg_update_fulfill_htlc.rs b/fuzz/src/msg_targets/msg_update_fulfill_htlc.rs index 460ff0e16..a96aa3729 100644 --- a/fuzz/src/msg_targets/msg_update_fulfill_htlc.rs +++ b/fuzz/src/msg_targets/msg_update_fulfill_htlc.rs @@ -10,18 +10,16 @@ // 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_update_fulfill_htlc_test(data: &[u8], _out: Out) { - test_msg_simple!(msgs::UpdateFulfillHTLC, data); + test_msg_simple!(lightning::ln::msgs::UpdateFulfillHTLC, data); } #[no_mangle] pub extern "C" fn msg_update_fulfill_htlc_run(data: *const u8, datalen: usize) { let data = unsafe { std::slice::from_raw_parts(data, datalen) }; - test_msg_simple!(msgs::UpdateFulfillHTLC, data); + test_msg_simple!(lightning::ln::msgs::UpdateFulfillHTLC, data); } diff --git a/fuzz/src/msg_targets/msg_warning_message.rs b/fuzz/src/msg_targets/msg_warning_message.rs index f033b6fd6..abcef229b 100644 --- a/fuzz/src/msg_targets/msg_warning_message.rs +++ b/fuzz/src/msg_targets/msg_warning_message.rs @@ -10,18 +10,16 @@ // 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_warning_message_test(data: &[u8], _out: Out) { - test_msg_hole!(msgs::WarningMessage, data, 32, 2); + test_msg_hole!(lightning::ln::msgs::WarningMessage, data, 32, 2); } #[no_mangle] pub extern "C" fn msg_warning_message_run(data: *const u8, datalen: usize) { let data = unsafe { std::slice::from_raw_parts(data, datalen) }; - test_msg_hole!(msgs::WarningMessage, data, 32, 2); + test_msg_hole!(lightning::ln::msgs::WarningMessage, data, 32, 2); } diff --git a/fuzz/targets.h b/fuzz/targets.h index d142aa648..7958a6f61 100644 --- a/fuzz/targets.h +++ b/fuzz/targets.h @@ -36,3 +36,4 @@ void msg_channel_update_run(const unsigned char* data, size_t data_len); void msg_onion_hop_data_run(const unsigned char* data, size_t data_len); void msg_ping_run(const unsigned char* data, size_t data_len); void msg_pong_run(const unsigned char* data, size_t data_len); +void msg_channel_details_run(const unsigned char* data, size_t data_len);