diff --git a/consensus/state_processing/src/per_epoch_processing/single_pass.rs b/consensus/state_processing/src/per_epoch_processing/single_pass.rs index b41fefe5194..51a3766f3ec 100644 --- a/consensus/state_processing/src/per_epoch_processing/single_pass.rs +++ b/consensus/state_processing/src/per_epoch_processing/single_pass.rs @@ -80,7 +80,6 @@ struct RewardsAndPenaltiesContext { } struct SlashingsContext { - adjusted_total_slashing_balance: u64, target_withdrawable_epoch: Epoch, penalty_per_effective_balance_increment: u64, } @@ -300,7 +299,7 @@ pub fn process_epoch_single_pass( // `process_slashings` if conf.slashings { - process_single_slashing(&mut balance, &validator, slashings_ctxt, state_ctxt, spec)?; + process_single_slashing(&mut balance, &validator, slashings_ctxt, spec)?; } // `process_pending_balance_deposits` @@ -783,7 +782,6 @@ impl SlashingsContext { )?; Ok(Self { - adjusted_total_slashing_balance, target_withdrawable_epoch, penalty_per_effective_balance_increment, }) @@ -794,7 +792,6 @@ fn process_single_slashing( balance: &mut Cow, validator: &Validator, slashings_ctxt: &SlashingsContext, - state_ctxt: &StateContext, spec: &ChainSpec, ) -> Result<(), Error> { if validator.slashed && slashings_ctxt.target_withdrawable_epoch == validator.withdrawable_epoch