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 use lightning::ln::msgs;
6 use msg_targets::utils::VecWriter;
7 use utils::test_logger;
10 pub fn msg_accept_channel_test<Out: test_logger::Output>(data: &[u8], _out: Out) {
11 test_msg!(msgs::AcceptChannel, data);
15 pub extern "C" fn msg_accept_channel_run(data: *const u8, datalen: usize) {
16 let data = unsafe { std::slice::from_raw_parts(data, datalen) };
17 test_msg!(msgs::AcceptChannel, data);