Skip to content

Commit

Permalink
Merge pull request #174 from TomAFrench/fix-validator-typo
Browse files Browse the repository at this point in the history
Correct typo in InvalidVoluntaryExit variant
  • Loading branch information
ralexstokes authored Jan 19, 2023
2 parents fbe43ee + 588ce16 commit 7df5aae
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/altair/state_transition/block_processing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ pub fn process_voluntary_exit<
validator.activation_eligibility_epoch + context.shard_committee_period;
if current_epoch < minimum_time_active {
return Err(invalid_operation_error(InvalidOperation::VoluntaryExit(
InvalidVoluntaryExit::ValidatoIsNotActiveForLongEnough {
InvalidVoluntaryExit::ValidatorIsNotActiveForLongEnough {
current_epoch,
minimum_time_active,
},
Expand Down
2 changes: 1 addition & 1 deletion src/bellatrix/state_transition/block_processing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -889,7 +889,7 @@ pub fn process_voluntary_exit<
validator.activation_eligibility_epoch + context.shard_committee_period;
if current_epoch < minimum_time_active {
return Err(invalid_operation_error(InvalidOperation::VoluntaryExit(
InvalidVoluntaryExit::ValidatoIsNotActiveForLongEnough {
InvalidVoluntaryExit::ValidatorIsNotActiveForLongEnough {
current_epoch,
minimum_time_active,
},
Expand Down
2 changes: 1 addition & 1 deletion src/phase0/block_processing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ pub fn process_voluntary_exit<
validator.activation_eligibility_epoch + context.shard_committee_period;
if current_epoch < minimum_time_active {
return Err(invalid_operation_error(InvalidOperation::VoluntaryExit(
InvalidVoluntaryExit::ValidatoIsNotActiveForLongEnough {
InvalidVoluntaryExit::ValidatorIsNotActiveForLongEnough {
current_epoch,
minimum_time_active,
},
Expand Down
2 changes: 1 addition & 1 deletion src/state_transition/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ pub enum InvalidVoluntaryExit {
exit_epoch: Epoch,
},
#[error("validator needs to be active for a minimum period of time (from epoch {minimum_time_active}, currently in {current_epoch})")]
ValidatoIsNotActiveForLongEnough {
ValidatorIsNotActiveForLongEnough {
current_epoch: Epoch,
minimum_time_active: Epoch,
},
Expand Down

0 comments on commit 7df5aae

Please sign in to comment.