Fix clippy errors from new code (unused method, unnecessary cast)

This commit is contained in:
dapplion
2026-05-19 16:59:36 -06:00
parent 701bbfd861
commit 6f89fdad11
2 changed files with 2 additions and 2 deletions

View File

@@ -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",
};

View File

@@ -41,7 +41,7 @@ pub struct AwaitingParent {
impl AwaitingParent {
pub fn is_parent_imported<T: BeaconChainTypes>(&self, cx: &mut SyncNetworkContext<T>) -> 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;