Add send message events for gossip_queries
authorbmancini55 <bmancini@gmail.com>
Thu, 22 Oct 2020 12:47:24 +0000 (08:47 -0400)
committerbmancini55 <bmancini@gmail.com>
Wed, 9 Dec 2020 20:02:22 +0000 (15:02 -0500)
commit34271fb75037372ff6063594d7a537c07670c863
tree5ac6b6ccf1333da5031c61ab07bcff94d989a961
parent3220f3b18233518688d2c689270d0adba25ed79e
Add send message events for gossip_queries

This change enables initiating gossip queries with a peer using the
SendMessageEvent enum. Specifically we add an event for sending
query_channel_range to discover the existance of channels and an event
for sending query_short_channel_ids to request routing gossip messages
for a set of channels. These events are handled inside the process_events
method of PeerManager which sends the serialized message to the peer.
lightning/src/ln/channelmanager.rs
lightning/src/ln/peer_handler.rs
lightning/src/util/events.rs