From 6f89fdad11e534693856bcc138bb3e347a44ca50 Mon Sep 17 00:00:00 2001 From: dapplion <35266934+dapplion@users.noreply.github.com> Date: Tue, 19 May 2026 16:59:36 -0600 Subject: [PATCH] Fix clippy errors from new code (unused method, unnecessary cast) --- .../network/src/network_beacon_processor/sync_methods.rs | 2 +- .../network/src/sync/block_lookups/single_block_lookup.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/beacon_node/network/src/network_beacon_processor/sync_methods.rs b/beacon_node/network/src/network_beacon_processor/sync_methods.rs index 3d306c505d..ae25b524da 100644 --- a/beacon_node/network/src/network_beacon_processor/sync_methods.rs +++ b/beacon_node/network/src/network_beacon_processor/sync_methods.rs @@ -1115,7 +1115,7 @@ fn classify_processing_result( return BlockProcessingResult::Error { penalty: Some(( PeerAction::MidToleranceError, - WhichPeerToPenalize::CustodyPeerForColumn(*idx as u64), + WhichPeerToPenalize::CustodyPeerForColumn(*idx), )), reason: "lookup_data_processing_failure", }; diff --git a/beacon_node/network/src/sync/block_lookups/single_block_lookup.rs b/beacon_node/network/src/sync/block_lookups/single_block_lookup.rs index 45454db616..c73933def1 100644 --- a/beacon_node/network/src/sync/block_lookups/single_block_lookup.rs +++ b/beacon_node/network/src/sync/block_lookups/single_block_lookup.rs @@ -41,7 +41,7 @@ pub struct AwaitingParent { impl AwaitingParent { pub fn is_parent_imported(&self, cx: &mut SyncNetworkContext) -> bool { - if self.parent_root == Hash256::ZERO { + if self.parent_is_genesis() { // Zero hash is the parent of the genesis block — not a real block, so no // parent-known check is needed. Fall through to send the block for processing. return true;