]> git.bitcoin.ninja Git - rust-lightning/commit
Remove should_request_full_sync from RoutingMessageHandler
authorbmancini55 <bmancini@gmail.com>
Wed, 9 Dec 2020 20:06:54 +0000 (15:06 -0500)
committerbmancini55 <bmancini@gmail.com>
Mon, 14 Dec 2020 17:52:59 +0000 (12:52 -0500)
commite0bb63bc600b9f5ec53948a1160033fec699b3b4
treeeb6a70ab6736150555ac22c1b9d5fe8e716a1ef3
parente742894492c55802b241eebc585bbd28aa16481b
Remove should_request_full_sync from RoutingMessageHandler

This method was used to set the initial_routing_sync flag when sending
an outbound Init message to a peer. Since we are now relying on
gossip_queries instead of initial_routing_sync, synchronization can be
fully encapsulate into RoutingMessageHandler via sync_routing_table.

This commit removes should_request_full_sync from the trait
RoutingMessageHandler. The implementation is still used in
NetGraphMsgHandler and has been converted into a private method instead
of a trait function.
lightning-net-tokio/src/lib.rs
lightning/src/ln/msgs.rs
lightning/src/routing/network_graph.rs
lightning/src/util/test_utils.rs