Skip to content

Commit

Permalink
Mark check_builds_on argument as unused
Browse files Browse the repository at this point in the history
  • Loading branch information
luckysori committed Dec 20, 2023
1 parent 20e2b3a commit cfe3645
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lightning-block-sync/src/poll.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ impl std::ops::Deref for ValidatedBlockHeader {
impl ValidatedBlockHeader {
/// Checks that the header correctly builds on previous_header: the claimed work differential
/// matches the actual PoW and the difficulty transition is possible, i.e., within 4x.
fn check_builds_on(&self, previous_header: &ValidatedBlockHeader, network: Network) -> BlockSourceResult<()> {
fn check_builds_on(&self, previous_header: &ValidatedBlockHeader, _network: Network) -> BlockSourceResult<()> {
if self.header.prev_blockhash != previous_header.block_hash {
return Err(BlockSourceError::persistent("invalid previous block hash"));
}
Expand Down

0 comments on commit cfe3645

Please sign in to comment.