From 588ce16282b8441c582caa8c7bf7fa4d1812a3f0 Mon Sep 17 00:00:00 2001 From: Tom French Date: Thu, 19 Jan 2023 02:58:23 +0000 Subject: [PATCH] fix: correct typo in InvalidVoluntaryExit variant --- src/altair/state_transition/block_processing.rs | 2 +- src/bellatrix/state_transition/block_processing.rs | 2 +- src/phase0/block_processing.rs | 2 +- src/state_transition/error.rs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/altair/state_transition/block_processing.rs b/src/altair/state_transition/block_processing.rs index 2a2b00f6b..da8846f11 100644 --- a/src/altair/state_transition/block_processing.rs +++ b/src/altair/state_transition/block_processing.rs @@ -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, }, diff --git a/src/bellatrix/state_transition/block_processing.rs b/src/bellatrix/state_transition/block_processing.rs index 540b7b8a8..3e7cf6b8d 100644 --- a/src/bellatrix/state_transition/block_processing.rs +++ b/src/bellatrix/state_transition/block_processing.rs @@ -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, }, diff --git a/src/phase0/block_processing.rs b/src/phase0/block_processing.rs index df22f18ec..c55de0f9e 100644 --- a/src/phase0/block_processing.rs +++ b/src/phase0/block_processing.rs @@ -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, }, diff --git a/src/state_transition/error.rs b/src/state_transition/error.rs index f31d3a7d7..0d364ffe8 100644 --- a/src/state_transition/error.rs +++ b/src/state_transition/error.rs @@ -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, },