From b785c970510eab7dc50a739f35412b84fd38cd0a Mon Sep 17 00:00:00 2001 From: Mikhail Kalinin <noblesse.knight@gmail.com> Date: Wed, 8 Jul 2020 21:58:20 +0600 Subject: [PATCH] Fix epoch_boundary_block_root computation --- specs/phase0/validator.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specs/phase0/validator.md b/specs/phase0/validator.md index a3bbcac32..bdd6f170d 100644 --- a/specs/phase0/validator.md +++ b/specs/phase0/validator.md @@ -399,7 +399,7 @@ Set `attestation_data.beacon_block_root = hash_tree_root(head_block)`. *Note*: `epoch_boundary_block_root` can be looked up in the state using: - Let `start_slot = compute_start_slot_at_epoch(get_current_epoch(head_state))`. -- Let `epoch_boundary_block_root = hash_tree_root(head_block) if start_slot == head_state.slot else get_block_root(state, start_slot)`. +- Let `epoch_boundary_block_root = hash_tree_root(head_block) if start_slot == head_state.slot else get_block_root(state, get_current_epoch(head_state))`. #### Construct attestation