Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions src/state_transition/block/slash_validator.zig
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ pub fn slashValidator(
try slashings.set(@intCast(slashing_index), cur_slashings + effective_balance);
epoch_cache.total_slashings_by_increment += slashed_effective_balance_increments;

// TODO(ct): define MIN_SLASHING_PENALTY_QUOTIENT_ELECTRA
const min_slashing_penalty_quotient: usize = switch (fork) {
.phase0 => preset.MIN_SLASHING_PENALTY_QUOTIENT,
.altair => preset.MIN_SLASHING_PENALTY_QUOTIENT_ALTAIR,
Expand All @@ -70,7 +69,6 @@ pub fn slashValidator(
try decreaseBalance(fork, state, slashed_index, @divFloor(effective_balance, min_slashing_penalty_quotient));

// apply proposer and whistleblower rewards
// TODO(ct): define WHISTLEBLOWER_REWARD_QUOTIENT_ELECTRA
const whistleblower_reward = switch (fork) {
.electra, .fulu => @divFloor(effective_balance, preset.WHISTLEBLOWER_REWARD_QUOTIENT_ELECTRA),
else => @divFloor(effective_balance, preset.WHISTLEBLOWER_REWARD_QUOTIENT),
Expand Down
Loading