From 38702358d104dda5d7a6c42e930bac78520fe0d4 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Mon, 17 Dec 2018 18:55:22 -0500 Subject: [PATCH] Add some additional channel-creation-broadcast-msg sanity checks --- src/ln/channelmanager.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ln/channelmanager.rs b/src/ln/channelmanager.rs index fcb79cdb5..217a57bc4 100644 --- a/src/ln/channelmanager.rs +++ b/src/ln/channelmanager.rs @@ -3777,6 +3777,8 @@ mod tests { let as_update = match events_8[0] { MessageSendEvent::BroadcastChannelAnnouncement { ref msg, ref update_msg } => { assert!(*announcement == *msg); + assert_eq!(update_msg.contents.short_channel_id, announcement.contents.short_channel_id); + assert_eq!(update_msg.contents.short_channel_id, bs_update.contents.short_channel_id); update_msg }, _ => panic!("Unexpected event"), -- 2.39.5