]> git.bitcoin.ninja Git - rust-lightning/commit
Parameterize NetGraphMsgHandler with NetworkGraph
authorJeffrey Czyz <jkczyz@gmail.com>
Mon, 1 Nov 2021 18:14:14 +0000 (13:14 -0500)
committerJeffrey Czyz <jkczyz@gmail.com>
Mon, 1 Nov 2021 18:14:14 +0000 (13:14 -0500)
commitbcdd85227949d17c9a98a9fc0b666bce4a97c856
tree679596e224c10a8d5fc6f7a64ebece71c5e948be
parentc53048a40f1267914409f125860fa72a3d7524a6
Parameterize NetGraphMsgHandler with NetworkGraph

NetworkGraph is owned by NetGraphMsgHandler, but DefaultRouter requires
a reference to it. Introduce shared ownership to NetGraphMsgHandler so
that both can use the same NetworkGraph.
fuzz/src/full_stack.rs
lightning-background-processor/src/lib.rs
lightning/src/ln/functional_test_utils.rs
lightning/src/ln/functional_tests.rs
lightning/src/ln/peer_handler.rs
lightning/src/routing/network_graph.rs
lightning/src/routing/router.rs