Apply suggestions from @dapplion

Co-authored-by: Lion - dapplion <35266934+dapplion@users.noreply.github.com>
This commit is contained in:
Mikhail Kalinin 2024-09-16 11:01:06 +04:00 committed by GitHub
parent 0eda70cfcb
commit 747a5a7891
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1437,7 +1437,8 @@ def process_consolidation_request(
# Churn any target excess active balance of target and raise its max
if has_eth1_withdrawal_credential(target_validator):
state.validators[target_index].withdrawal_credentials = (
COMPOUNDING_WITHDRAWAL_PREFIX + target_validator.withdrawal_credentials[1:])
COMPOUNDING_WITHDRAWAL_PREFIX + target_validator.withdrawal_credentials[1:]
)
queue_excess_active_balance(state, target_index)
# Verify that source != target, so a consolidation cannot be used as an exit.