From: Matt Corallo Date: Mon, 17 Dec 2018 23:55:22 +0000 (-0500) Subject: Add some additional channel-creation-broadcast-msg sanity checks X-Git-Tag: v0.0.12~254^2~3 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=38702358d104dda5d7a6c42e930bac78520fe0d4;p=rust-lightning Add some additional channel-creation-broadcast-msg sanity checks --- 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"),