From b637b9ad72cd18619aaf8a7cd7422e31f7b190c6 Mon Sep 17 00:00:00 2001 From: Danny Ryan Date: Mon, 6 Jan 2020 17:19:31 -0700 Subject: [PATCH] fix mod bug for voting period --- specs/validator/0_beacon-chain-validator.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specs/validator/0_beacon-chain-validator.md b/specs/validator/0_beacon-chain-validator.md index 49261f21a..36b4f4ac0 100644 --- a/specs/validator/0_beacon-chain-validator.md +++ b/specs/validator/0_beacon-chain-validator.md @@ -267,7 +267,7 @@ def compute_time_at_slot(state: BeaconState, slot: Slot) -> uint64: ```python def voting_period_start_time(state: BeaconState) -> uint64: - eth1_voting_period_start_slot = Slot(state.slot % SLOTS_PER_ETH1_VOTING_PERIOD) + eth1_voting_period_start_slot = Slot(state.slot - state.slot % SLOTS_PER_ETH1_VOTING_PERIOD) return compute_time_at_slot(state, eth1_voting_period_start_slot) ```