Skip to content

Commit 0dd76d3

Browse files
authored
Merge pull request #3905 from ralexstokes/harmonize-electra-withdrawals
harmonize `process_withdrawals` spec with #3761
2 parents 534cb06 + c763163 commit 0dd76d3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

specs/electra/beacon-chain.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1022,10 +1022,9 @@ def get_expected_withdrawals(state: BeaconState) -> Tuple[Sequence[Withdrawal],
10221022
def process_withdrawals(state: BeaconState, payload: ExecutionPayload) -> None:
10231023
expected_withdrawals, partial_withdrawals_count = get_expected_withdrawals(state) # [Modified in Electra:EIP7251]
10241024

1025-
assert len(payload.withdrawals) == len(expected_withdrawals)
1025+
assert payload.withdrawals == expected_withdrawals
10261026

1027-
for expected_withdrawal, withdrawal in zip(expected_withdrawals, payload.withdrawals):
1028-
assert withdrawal == expected_withdrawal
1027+
for withdrawal in expected_withdrawals:
10291028
decrease_balance(state, withdrawal.validator_index, withdrawal.amount)
10301029

10311030
# Update pending partial withdrawals [New in Electra:EIP7251]

0 commit comments

Comments
 (0)