mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-11 04:31:51 +00:00
Clean up progressive balance slashings further (#4834)
* Clean up progressive balance slashings further * Fix Rayon deadlock in test utils * Fix cargo-fmt
This commit is contained in:
@@ -69,9 +69,10 @@ pub fn update_progressive_balances_on_attestation<T: EthSpec>(
|
||||
validator_effective_balance: u64,
|
||||
validator_slashed: bool,
|
||||
) -> Result<(), BlockProcessingError> {
|
||||
if is_progressive_balances_enabled(state) && !validator_slashed {
|
||||
if is_progressive_balances_enabled(state) {
|
||||
state.progressive_balances_cache_mut().on_new_attestation(
|
||||
epoch,
|
||||
validator_slashed,
|
||||
flag_index,
|
||||
validator_effective_balance,
|
||||
)?;
|
||||
|
||||
Reference in New Issue
Block a user