From e53213a585e00851f61d540ec24a3c19a0b30b57 Mon Sep 17 00:00:00 2001 From: Hsiao-Wei Wang Date: Wed, 20 Jan 2021 13:06:24 +0800 Subject: [PATCH] Minor refactor --- specs/phase0/beacon-chain.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/specs/phase0/beacon-chain.md b/specs/phase0/beacon-chain.md index b05ebe6de..bfa6bdd35 100644 --- a/specs/phase0/beacon-chain.md +++ b/specs/phase0/beacon-chain.md @@ -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 = []