Fix `Simple*PeerManager` to not require refs to the `UtxoLookup`
authorMatt Corallo <git@bluematt.me>
Sat, 30 Sep 2023 17:32:28 +0000 (17:32 +0000)
committerMatt Corallo <git@bluematt.me>
Sat, 30 Sep 2023 17:57:54 +0000 (17:57 +0000)
commit6482635ba6be94d73ea0c179bd5a09243c9b8f7a
tree10f03e5524bb381753474d771a286c10aa268101
parent20f287f4392e7bdb5e83793d4024f4dc5a29ce58
Fix `Simple*PeerManager` to not require refs to the `UtxoLookup`

`UtxoLookup` doesn't strictly need to be referenced from the
`PeerManager`, and in fact the new `GossipVerifier` in
`lightning-block-sync` requires itself to be owned by the
`PeerManager` (for circular type reasons).

This allows us to use `lightning-block-sync`'s `GossipVerifier`
with `SimpleArcPeerManager` in ldk-sample.
lightning-background-processor/src/lib.rs
lightning/src/ln/peer_handler.rs