]> git.bitcoin.ninja Git - rust-lightning/commit
Change routing table sync to use gossip_queries
authorbmancini55 <bmancini@gmail.com>
Thu, 3 Dec 2020 17:48:40 +0000 (12:48 -0500)
committerbmancini55 <bmancini@gmail.com>
Mon, 14 Dec 2020 17:52:54 +0000 (12:52 -0500)
commite742894492c55802b241eebc585bbd28aa16481b
tree79e3cb8d6a120d5178e861d87664eecae9a5c614
parent7a4a29ffe0dbfdd2fe82376024ae680401c74700
Change routing table sync to use gossip_queries

This commit changes outbound routing table sync to use gossip_queries
instead of the effectively deprecated initial_routing_sync feature.

This change removes setting of initial_routing_sync in our outbound Init
message. Instead we now call sync_routing_table after receiving an Init
message from a peer. If the peer supports gossip_queries and
should_request_full_sync returns true, we initiate a full gossip_queries
sync.
lightning/src/ln/features.rs
lightning/src/ln/msgs.rs
lightning/src/ln/peer_handler.rs
lightning/src/routing/network_graph.rs