Skip to content

Commit

Permalink
fix: rm error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
0xRampey committed Oct 30, 2024
1 parent b8fa1c1 commit 737ffae
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions ethereum/consensus-core/src/consensus_core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -307,8 +307,6 @@ pub fn verify_generic_update<S: ConsensusSpec>(
} else {
return Err(ConsensusError::InvalidFinalityProof.into());
}
} else {
return Err(ConsensusError::MissingFinalizedHeader.into());
}

if let Some(next_sync_committee) = &update.next_sync_committee {
Expand Down
2 changes: 0 additions & 2 deletions ethereum/consensus-core/src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,4 @@ pub enum ConsensusError {
CheckpointTooOld,
#[error("consensus rpc is for the incorrect network")]
IncorrectRpcNetwork,
#[error("finalized header missing")]
MissingFinalizedHeader,
}

0 comments on commit 737ffae

Please sign in to comment.