From e030f2cd60fa6a7fa92ed63827e6cc82d350b6de Mon Sep 17 00:00:00 2001 From: fradamt Date: Thu, 18 Apr 2024 13:45:17 +0200 Subject: [PATCH] Small fixes Co-authored-by: Mikhail Kalinin --- specs/electra/beacon-chain.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/specs/electra/beacon-chain.md b/specs/electra/beacon-chain.md index 18dca832e..19e66d76d 100644 --- a/specs/electra/beacon-chain.md +++ b/specs/electra/beacon-chain.md @@ -1315,7 +1315,7 @@ def process_execution_layer_consolidation(state: BeaconState, consolidation: Exe # Verify source withdrawal credentials has_correct_credential = has_execution_withdrawal_credential(source_validator) is_correct_source_address = ( - validator.withdrawal_credentials[12:] == consolidation.source_address + source_validator.withdrawal_credentials[12:] == consolidation.source_address ) if not (has_correct_credential and is_correct_source_address): return @@ -1344,8 +1344,8 @@ def process_execution_layer_consolidation(state: BeaconState, consolidation: Exe source_validator.exit_epoch + MIN_VALIDATOR_WITHDRAWABILITY_DELAY ) state.pending_consolidations.append(PendingConsolidation( - source_index=consolidation.source_index, - target_index=consolidation.target_index + source_index=source_index, + target_index=target_index )) ```