diff --git a/bridges/modules/ethereum/src/verification.rs b/bridges/modules/ethereum/src/verification.rs index b762a280f5..aac1d20067 100644 --- a/bridges/modules/ethereum/src/verification.rs +++ b/bridges/modules/ethereum/src/verification.rs @@ -232,7 +232,11 @@ fn contextual_checks( let parent_step = context.parent_header().step().ok_or(Error::MissingStep)?; // Ensure header is from the step after context. - if header_step == parent_step || (header.number >= config.validate_step_transition && header_step <= parent_step) { + if header_step == parent_step { + return Err(Error::DoubleVote); + } + #[allow(clippy::suspicious_operation_groupings)] + if header.number >= config.validate_step_transition && header_step < parent_step { return Err(Error::DoubleVote); }