From cfe3645b12872a90704044572a279525fee3914c Mon Sep 17 00:00:00 2001 From: Lucas Soriano del Pino Date: Thu, 2 Nov 2023 13:27:44 +1100 Subject: [PATCH] Mark check_builds_on argument as unused --- lightning-block-sync/src/poll.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lightning-block-sync/src/poll.rs b/lightning-block-sync/src/poll.rs index 4418a0d30f0..1c37d794ece 100644 --- a/lightning-block-sync/src/poll.rs +++ b/lightning-block-sync/src/poll.rs @@ -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")); }