Switch to compounding when consolidating with source==target

This commit is contained in:
Pawan Dhananjay
2024-10-10 16:31:36 -07:00
parent 3d595e6c0f
commit 0a4e6be223
3 changed files with 69 additions and 25 deletions

View File

@@ -952,9 +952,6 @@ fn process_pending_consolidations<E: EthSpec>(
max_effective_balance,
);
// Churn any target excess active balance of target and raise its max.
state.switch_to_compounding_validator(target_index, spec)?;
// Move active balance to target. Excess balance is withdrawable.
decrease_balance(state, source_index, source_effective_balance)?;
increase_balance(state, target_index, source_effective_balance)?;