Skip to content

Commit 3870235

Browse files
committed
Add some additional channel-creation-broadcast-msg sanity checks
1 parent b7e76c5 commit 3870235

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/ln/channelmanager.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3777,6 +3777,8 @@ mod tests {
37773777
let as_update = match events_8[0] {
37783778
MessageSendEvent::BroadcastChannelAnnouncement { ref msg, ref update_msg } => {
37793779
assert!(*announcement == *msg);
3780+
assert_eq!(update_msg.contents.short_channel_id, announcement.contents.short_channel_id);
3781+
assert_eq!(update_msg.contents.short_channel_id, bs_update.contents.short_channel_id);
37803782
update_msg
37813783
},
37823784
_ => panic!("Unexpected event"),

0 commit comments

Comments
 (0)