Skip to content

Commit

Permalink
Merge pull request #3629 from StefanBratanov/eip_6110_rename_function
Browse files Browse the repository at this point in the history
EIP-6110 rename `get_eth1_deposit_count` function
  • Loading branch information
hwwhww committed Apr 4, 2024
2 parents 128a273 + 4f61308 commit 6cfa8f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion specs/_features/eip6110/validator.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Please see related Beacon Chain doc before continuing and use them as a referenc
The expected number of deposits MUST be changed from `min(MAX_DEPOSITS, eth1_data.deposit_count - state.eth1_deposit_index)` to the result of the following function:

```python
def get_eth1_deposit_count(state: BeaconState) -> uint64:
def get_eth1_pending_deposit_count(state: BeaconState) -> uint64:
eth1_deposit_index_limit = min(state.eth1_data.deposit_count, state.deposit_receipts_start_index)
if state.eth1_deposit_index < eth1_deposit_index_limit:
return min(MAX_DEPOSITS, eth1_deposit_index_limit - state.eth1_deposit_index)
Expand Down

0 comments on commit 6cfa8f7

Please sign in to comment.