Skip to content

Commit

Permalink
fix(era_validator): changes equality to correct comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrohba1 committed Mar 15, 2024
1 parent ac34a7d commit 7fb3ed8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/era_validator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ fn process_headers(
if headers.len() != MAX_EPOCH_SIZE {
Err(EraValidateError::InvalidEpochLength)?;
}
if headers[0].block_number % MAX_EPOCH_SIZE as u64 == 0 {
if headers[0].block_number % MAX_EPOCH_SIZE as u64 != 0 {
Err(EraValidateError::InvalidEpochStart)?;
}

Expand Down

0 comments on commit 7fb3ed8

Please sign in to comment.