Skip to content

Commit

Permalink
Merge pull request lightningdevkit#3354 from tnull/2024-10-fix-block-…
Browse files Browse the repository at this point in the history
…init-synchronize

`lightning-block-sync`: Fix `synchronize_listeners` always calling default implementation
  • Loading branch information
TheBlueMatt authored Oct 14, 2024
2 parents ad19d93 + f4fe450 commit 46d8a0d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lightning-block-sync/src/init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,6 @@ impl<'a, L: chain::Listen + ?Sized> chain::Listen for DynamicChainListener<'a, L
struct ChainListenerSet<'a, L: chain::Listen + ?Sized>(Vec<(u32, &'a L)>);

impl<'a, L: chain::Listen + ?Sized> chain::Listen for ChainListenerSet<'a, L> {
// Needed to differentiate test expectations.
#[cfg(test)]
fn block_connected(&self, block: &bitcoin::Block, height: u32) {
for (starting_height, chain_listener) in self.0.iter() {
if height > *starting_height {
Expand Down

0 comments on commit 46d8a0d

Please sign in to comment.