Minor refactor

This commit is contained in:
Hsiao-Wei Wang 2021-01-20 13:06:24 +08:00 committed by GitHub
parent 93d19bdf40
commit e53213a585
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -1570,8 +1570,7 @@ def process_slashings(state: BeaconState) -> None:
#### Eth1 data votes updates
```python
def process_eth1_data_votes_updates(state: BeaconState) -> None:
current_epoch = get_current_epoch(state)
next_epoch = Epoch(current_epoch + 1)
next_epoch = Epoch(get_current_epoch(state) + 1)
# Reset eth1 data votes
if next_epoch % EPOCHS_PER_ETH1_VOTING_PERIOD == 0:
state.eth1_data_votes = []