]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Add some additional channel-creation-broadcast-msg sanity checks
authorMatt Corallo <git@bluematt.me>
Mon, 17 Dec 2018 23:55:22 +0000 (18:55 -0500)
committerMatt Corallo <git@bluematt.me>
Tue, 18 Dec 2018 03:55:45 +0000 (22:55 -0500)
src/ln/channelmanager.rs

index fcb79cdb59dcc74a125fd57ab06d23eb2839b185..217a57bc48b90ea2e4a7df067d325dea8c8cfc14 100644 (file)
@@ -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"),