]> git.bitcoin.ninja Git - rust-lightning/blobdiff - lightning/src/util/events.rs
Merge pull request #846 from TheBlueMatt/2021-03-test-chains
[rust-lightning] / lightning / src / util / events.rs
index 6f6f32daeab18226313872d1b5ae15fbd3bfa038..118503c040d09fafc6d6783a7f5b1edfe839430b 100644 (file)
@@ -228,7 +228,7 @@ impl MaybeReadable for Event {
 /// An event generated by ChannelManager which indicates a message should be sent to a peer (or
 /// broadcast to most peers).
 /// These events are handled by PeerManager::process_events if you are using a PeerManager.
-#[derive(Clone)]
+#[derive(Clone, Debug)]
 pub enum MessageSendEvent {
        /// Used to indicate that we've accepted a channel open and should send the accept_channel
        /// message provided to the given peer.
@@ -362,6 +362,14 @@ pub enum MessageSendEvent {
                /// The query_short_channel_ids which should be sent.
                msg: msgs::QueryShortChannelIds,
        },
+       /// Sends a reply to a channel range query. This may be one of several SendReplyChannelRange events
+       /// emitted during processing of the query.
+       SendReplyChannelRange {
+               /// The node_id of this message recipient
+               node_id: PublicKey,
+               /// The reply_channel_range which should be sent.
+               msg: msgs::ReplyChannelRange,
+       }
 }
 
 /// A trait indicating an object may generate message send events