X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;ds=inline;f=lightning%2Fsrc%2Futil%2Fevents.rs;h=271b6ddd13e71c0c58ddb1299dc6431970e0f08b;hb=8799a2a0440603bb10b7cf121f60e41f0ef1a6fa;hp=3eeacdc732cb12969f0cddd69aa329745dce5297;hpb=52673d480e615b8b5113435e588da24267316c2e;p=rust-lightning diff --git a/lightning/src/util/events.rs b/lightning/src/util/events.rs index 3eeacdc7..271b6ddd 100644 --- a/lightning/src/util/events.rs +++ b/lightning/src/util/events.rs @@ -346,6 +346,29 @@ pub enum MessageSendEvent { PaymentFailureNetworkUpdate { /// The channel/node update which should be sent to NetGraphMsgHandler update: msgs::HTLCFailChannelUpdate, + }, + /// Query a peer for channels with funding transaction UTXOs in a block range. + SendChannelRangeQuery { + /// The node_id of this message recipient + node_id: PublicKey, + /// The query_channel_range which should be sent. + msg: msgs::QueryChannelRange, + }, + /// Request routing gossip messages from a peer for a list of channels identified by + /// their short_channel_ids. + SendShortIdsQuery { + /// The node_id of this message recipient + node_id: PublicKey, + /// 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, } }