]> git.bitcoin.ninja Git - rust-lightning/commit
Implement EventHandler for NetworkGraph
authorJeffrey Czyz <jkczyz@gmail.com>
Fri, 3 Jun 2022 05:59:14 +0000 (22:59 -0700)
committerJeffrey Czyz <jkczyz@gmail.com>
Mon, 6 Jun 2022 18:02:47 +0000 (13:02 -0500)
commit4ccf4451c21d1c35e3ada7e3f465e7634c5c2da5
tree274a2163808e8ca94bd00ec017ec627d6ad06f67
parent67736b7480051e624a8c69bf61d15f22beecd38f
Implement EventHandler for NetworkGraph

Instead of implementing EventHandler for P2PGossipSync, implement it on
NetworkGraph. This allows RapidGossipSync to handle events, too, by
delegating to its NetworkGraph.
lightning-background-processor/src/lib.rs
lightning/src/routing/gossip.rs
lightning/src/util/events.rs