Skip to content

Commit

Permalink
Fix unused; lint
Browse files Browse the repository at this point in the history
  • Loading branch information
pawanjay176 committed Sep 28, 2024
1 parent 78e37b1 commit 4b7428e
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ struct RewardsAndPenaltiesContext {
}

struct SlashingsContext {
adjusted_total_slashing_balance: u64,
target_withdrawable_epoch: Epoch,
penalty_per_effective_balance_increment: u64,
}
Expand Down Expand Up @@ -300,7 +299,7 @@ pub fn process_epoch_single_pass<E: EthSpec>(

// `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`
Expand Down Expand Up @@ -783,7 +782,6 @@ impl SlashingsContext {
)?;

Ok(Self {
adjusted_total_slashing_balance,
target_withdrawable_epoch,
penalty_per_effective_balance_increment,
})
Expand All @@ -794,7 +792,6 @@ fn process_single_slashing(
balance: &mut Cow<u64>,
validator: &Validator,
slashings_ctxt: &SlashingsContext,
state_ctxt: &StateContext,
spec: &ChainSpec,
) -> Result<(), Error> {
if validator.slashed && slashings_ctxt.target_withdrawable_epoch == validator.withdrawable_epoch
Expand Down

0 comments on commit 4b7428e

Please sign in to comment.