]> git.bitcoin.ninja Git - rust-lightning/commit
Update NetworkGraph in BackgroundProcessor
authorJeffrey Czyz <jkczyz@gmail.com>
Wed, 15 Sep 2021 02:38:00 +0000 (21:38 -0500)
committerJeffrey Czyz <jkczyz@gmail.com>
Wed, 15 Sep 2021 16:53:13 +0000 (11:53 -0500)
commit992df51001af62a8fb9d39d3c2fb70f26918d740
tree49818acda2ea7df6283f63560ccb75f3ada9428f
parente2f088c3718ddc4338b6871729c857c4b7422cf8
Update NetworkGraph in BackgroundProcessor

Decorate the user-supplied EventHandler with NetGraphMsgHandler in
the BackgroundProcessor. The resulting handler will intercept
PaymentFailed events in order to update the NetworkGraph in the
background before delegating to the user's event handler.
lightning-background-processor/src/lib.rs