]> git.bitcoin.ninja Git - rust-lightning/commit
EventHandler for applying NetworkUpdate
authorJeffrey Czyz <jkczyz@gmail.com>
Thu, 12 Aug 2021 21:02:42 +0000 (16:02 -0500)
committerJeffrey Czyz <jkczyz@gmail.com>
Wed, 15 Sep 2021 16:50:31 +0000 (11:50 -0500)
commitba2c00b3f8e22ca2bf72af1c629ba811596aa7ba
treebb6f10c2732ff4b0806ebce7475b2030b7ef3cd4
parenteff9a47075445a3d4f3bf15ef68723c2ea6348e8
EventHandler for applying NetworkUpdate

PaymentFailed events contain an optional NetworkUpdate describing
changes to the NetworkGraph as conveyed by a node along a failed payment
path according to BOLT 4. An EventHandler should apply the update to the
graph so that future routing decisions can account for it.

Implement EventHandler for NetGraphMsgHandler to update NetworkGraph.
Previously, NetGraphMsgHandler::handle_htlc_fail_channel_update
implemented this behavior.
fuzz/src/full_stack.rs
lightning/src/ln/functional_test_utils.rs
lightning/src/routing/network_graph.rs
lightning/src/routing/router.rs
lightning/src/util/events.rs