Skip to content

Commit

Permalink
Merge pull request #3432 from tnull/2024-11-take-verifier-by-arc
Browse files Browse the repository at this point in the history
Take circular `GossipVerifier` reference by `Arc`
  • Loading branch information
TheBlueMatt authored Dec 5, 2024
2 parents 529cbed + aca3979 commit 239d10a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lightning-block-sync/src/gossip.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ pub struct GossipVerifier<
{
source: Blocks,
peer_manager_wake: Arc<dyn Fn() + Send + Sync>,
gossiper: Arc<P2PGossipSync<Arc<NetworkGraph<L>>, Self, L>>,
gossiper: Arc<P2PGossipSync<Arc<NetworkGraph<L>>, Arc<Self>, L>>,
spawn: S,
block_cache: Arc<Mutex<VecDeque<(u32, Block)>>>,
}
Expand All @@ -162,7 +162,7 @@ where
/// This is expected to be given to a [`P2PGossipSync`] (initially constructed with `None` for
/// the UTXO lookup) via [`P2PGossipSync::add_utxo_lookup`].
pub fn new<APM: Deref + Send + Sync + Clone + 'static>(
source: Blocks, spawn: S, gossiper: Arc<P2PGossipSync<Arc<NetworkGraph<L>>, Self, L>>,
source: Blocks, spawn: S, gossiper: Arc<P2PGossipSync<Arc<NetworkGraph<L>>, Arc<Self>, L>>,
peer_manager: APM,
) -> Self
where
Expand Down

0 comments on commit 239d10a

Please sign in to comment.