]> git.bitcoin.ninja Git - rust-lightning/commit
Refactor PaymentFailureNetworkUpdate event
authorJeffrey Czyz <jkczyz@gmail.com>
Thu, 12 Aug 2021 20:30:53 +0000 (15:30 -0500)
committerJeffrey Czyz <jkczyz@gmail.com>
Wed, 15 Sep 2021 16:50:27 +0000 (11:50 -0500)
commiteff9a47075445a3d4f3bf15ef68723c2ea6348e8
tree72ce215b68f23db176243379e8ce61f6b1d2cc53
parentbd3ee0ab3d7f07afd73270da7e93d591c68cdc9d
Refactor PaymentFailureNetworkUpdate event

MessageSendEvent::PaymentFailureNetworkUpdate served as a hack to pass
an HTLCFailChannelUpdate from ChannelManager to NetGraphMsgHandler via
PeerManager. Instead, remove the event entirely and move the contained
data (renamed NetworkUpdate) to Event::PaymentFailed to be processed by
an event handler.
15 files changed:
fuzz/src/chanmon_consistency.rs
lightning-net-tokio/src/lib.rs
lightning/src/ln/channelmanager.rs
lightning/src/ln/functional_test_utils.rs
lightning/src/ln/functional_tests.rs
lightning/src/ln/monitor_tests.rs
lightning/src/ln/msgs.rs
lightning/src/ln/onion_route_tests.rs
lightning/src/ln/onion_utils.rs
lightning/src/ln/peer_handler.rs
lightning/src/ln/reorg_tests.rs
lightning/src/ln/shutdown_tests.rs
lightning/src/routing/network_graph.rs
lightning/src/util/events.rs
lightning/src/util/test_utils.rs