Implement gossip_queries sync methods in NetGraphMsgHandler
authorbmancini55 <bmancini@gmail.com>
Thu, 22 Oct 2020 16:44:53 +0000 (12:44 -0400)
committerbmancini55 <bmancini@gmail.com>
Wed, 9 Dec 2020 20:02:32 +0000 (15:02 -0500)
commit69da2daeae6cad74cbd087e5a6ea3a5376005ee0
treedeb2d56c37162c88f83c00c70ba4add2984b2977
parent55e5aafcfe3b4d55df1fa500846e3a0f093f85c8
Implement gossip_queries sync methods in NetGraphMsgHandler

To perform a sync of routing gossip messages with a peer requires a two
step process where we first initiate a channel range query to discover
channels in a block range. Next we request the routing gossip messages
for discovered channels.

This code implements logic in NetGraphMsgHandler for performing these two
tasks while taking into account the specification and variance in
implementation.
lightning/src/routing/network_graph.rs