-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Labels
Description
We should update this function in Fulu specs to remove the old deposit mechanism.
consensus-specs/specs/electra/beacon-chain.md
Lines 1390 to 1401 in 9a30a5c
| def process_operations(state: BeaconState, body: BeaconBlockBody) -> None: | |
| # [Modified in Electra:EIP6110] | |
| # Disable former deposit mechanism once all prior deposits are processed | |
| eth1_deposit_index_limit = min( | |
| state.eth1_data.deposit_count, state.deposit_requests_start_index | |
| ) | |
| if state.eth1_deposit_index < eth1_deposit_index_limit: | |
| assert len(body.deposits) == min( | |
| MAX_DEPOSITS, eth1_deposit_index_limit - state.eth1_deposit_index | |
| ) | |
| else: | |
| assert len(body.deposits) == 0 |