Skip to content

Commit a4af6d0

Browse files
committed
f - fix build warning
1 parent 3675d29 commit a4af6d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lightning-block-sync/src/init.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
use crate::{BlockSource, BlockSourceResult, Cache, ChainNotifier};
55
use crate::poll::{ChainPoller, Validate, ValidatedBlockHeader};
66

7-
use bitcoin::blockdata::block::{Block, BlockHeader};
7+
use bitcoin::blockdata::block::BlockHeader;
88
use bitcoin::hash_types::BlockHash;
99
use bitcoin::network::constants::Network;
1010

@@ -218,7 +218,7 @@ struct ChainListenerSet<'a, L: chain::Listen + ?Sized>(Vec<(u32, &'a L)>);
218218
impl<'a, L: chain::Listen + ?Sized> chain::Listen for ChainListenerSet<'a, L> {
219219
// Needed to differentiate test expectations.
220220
#[cfg(test)]
221-
fn block_connected(&self, block: &Block, height: u32) {
221+
fn block_connected(&self, block: &bitcoin::blockdata::block::Block, height: u32) {
222222
for (starting_height, chain_listener) in self.0.iter() {
223223
if height > *starting_height {
224224
chain_listener.block_connected(block, height);

0 commit comments

Comments
 (0)