X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=lightning%2Fsrc%2Futil%2Fevents.rs;h=265e918661168c8d3c9ab24372439471597849e9;hb=2b2965f1fe6b0d7a2e7ca6ced88404ed7c723b3c;hp=475533c902a372fdb0bea1b86cb0e754dc90fbe4;hpb=d4de913ae7bc9381ec6dc4e5f4494e201226d26c;p=rust-lightning diff --git a/lightning/src/util/events.rs b/lightning/src/util/events.rs index 475533c9..265e9186 100644 --- a/lightning/src/util/events.rs +++ b/lightning/src/util/events.rs @@ -1612,13 +1612,18 @@ pub enum MessageSendEvent { /// The channel_announcement which should be sent. msg: msgs::ChannelAnnouncement, /// The followup channel_update which should be sent. - update_msg: msgs::ChannelUpdate, + update_msg: Option, }, /// Used to indicate that a channel_update should be broadcast to all peers. BroadcastChannelUpdate { /// The channel_update which should be sent. msg: msgs::ChannelUpdate, }, + /// Used to indicate that a node_announcement should be broadcast to all peers. + BroadcastNodeAnnouncement { + /// The node_announcement which should be sent. + msg: msgs::NodeAnnouncement, + }, /// Used to indicate that a channel_update should be sent to a single peer. /// In contrast to [`Self::BroadcastChannelUpdate`], this is used when the channel is a /// private channel and we shouldn't be informing all of our peers of channel parameters.