Skip to content

Commit 91a5eec

Browse files
luckysoriTibo-lg
authored andcommitted
Mark check_builds_on argument as unused
1 parent 2d201b2 commit 91a5eec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning-block-sync/src/poll.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ impl std::ops::Deref for ValidatedBlockHeader {
120120
impl ValidatedBlockHeader {
121121
/// Checks that the header correctly builds on previous_header: the claimed work differential
122122
/// matches the actual PoW and the difficulty transition is possible, i.e., within 4x.
123-
fn check_builds_on(&self, previous_header: &ValidatedBlockHeader, network: Network) -> BlockSourceResult<()> {
123+
fn check_builds_on(&self, previous_header: &ValidatedBlockHeader, _network: Network) -> BlockSourceResult<()> {
124124
if self.header.prev_blockhash != previous_header.block_hash {
125125
return Err(BlockSourceError::persistent("invalid previous block hash"));
126126
}

0 commit comments

Comments
 (0)