mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-16 03:12:41 +00:00
WIP trash changes
This commit is contained in:
@@ -24,10 +24,10 @@ pub fn process_slashings(
|
||||
let penalty = std::cmp::max(
|
||||
effective_balance * std::cmp::min(total_penalities * 3, current_total_balance)
|
||||
/ current_total_balance,
|
||||
effective_balance / spec.min_penalty_quotient,
|
||||
effective_balance / 1, /* FIXME(sproul): spec.min_penalty_quotient, */
|
||||
);
|
||||
|
||||
state.validator_balances[index] -= penalty;
|
||||
state.balances[index] -= penalty;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user