]> git.bitcoin.ninja Git - rust-lightning/commit
Refactor gossip_queries sync to be stateless
authorbmancini55 <bmancini@gmail.com>
Wed, 18 Nov 2020 18:32:55 +0000 (13:32 -0500)
committerbmancini55 <bmancini@gmail.com>
Wed, 9 Dec 2020 20:02:32 +0000 (15:02 -0500)
commit14d4492b683977078ddc1ed5e5c75e31d00f21f0
treedd7fe1d0ab3112c5c4bb1515d25447c44ae2ec69
parentd183b975da73c40c513feca92e09f8295b70b13f
Refactor gossip_queries sync to be stateless

This commit simplifies the sync process for routing gossip messages. When
a sync is initiated, the process is handled statelessly by immediately
issuing SCID queries as channel range replies are received. This greatly
simplifies the state machine at the cost of fully validating and
conforming to the current spec.
lightning-net-tokio/src/lib.rs
lightning/src/ln/msgs.rs
lightning/src/routing/network_graph.rs
lightning/src/util/test_utils.rs