]> git.bitcoin.ninja Git - rust-lightning/commit
Switch to using the `OnionMessenger` directly in BP
authorMatt Corallo <git@bluematt.me>
Fri, 10 May 2024 21:07:08 +0000 (21:07 +0000)
committerMatt Corallo <git@bluematt.me>
Mon, 3 Jun 2024 18:51:28 +0000 (18:51 +0000)
commit92bf4602927ea6346e81f82ffbddda1a83b1541a
treeb1daf440166ab427c58aade63fc13f941cd69a10
parent3abec4f03194d818b72bf377b2086563c56f1812
Switch to using the `OnionMessenger` directly in BP

When `OnionMessenger` first developed a timer and events interface,
we accessed the `OnionMessenger` indirectly via the `PeerManager`.
While this is a fairly awkward interface, it avoided a large pile
of generics on the background processor interfaces. However, since
we now have an `AOnionMessenger` trait, this concern is no longer
significant. Further, because we now want to use the built-in
`OnionMessenger` async event processing method, we really need a
direct referene to the `OnionMessenger` in the background
processor, which we add here optionally.
lightning-background-processor/src/lib.rs