]> git.bitcoin.ninja Git - rust-lightning/commit
Move initial_routing_sync decision to the Router
authorJeffrey Czyz <jkczyz@gmail.com>
Mon, 10 Feb 2020 19:13:41 +0000 (11:13 -0800)
committerJeffrey Czyz <jkczyz@gmail.com>
Mon, 10 Feb 2020 19:13:41 +0000 (11:13 -0800)
commitd3fb619020df91959d2c20bdf5ef76d1d63f9778
treeaa358b95c79dcc2ca100fe2289306ee22a007f15
parent2ec7c7703698b55942a7d0d1b23d83e3881d557f
Move initial_routing_sync decision to the Router

PeerManager determines whether the initial_routing_sync feature bit
should be set when sending Init messages to peers. Move this to the
Router as it is better able to determine if a full sync is needed.
lightning/src/ln/msgs.rs
lightning/src/ln/peer_handler.rs
lightning/src/ln/router.rs
lightning/src/util/test_utils.rs