Skip to content

Commit

Permalink
Merge pull request #629 from terenc3t/patch-50
Browse files Browse the repository at this point in the history
Quick fix on epoch boundary root
  • Loading branch information
djrtwo authored Feb 14, 2019
2 parents 67eec43 + 380f5bc commit 81e8f53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions specs/validator/0_beacon-chain-validator.md
Original file line number Diff line number Diff line change
Expand Up @@ -260,9 +260,9 @@ Set `attestation_data.beacon_block_root = hash_tree_root(head)` where `head` is

##### Epoch boundary root

Set `attestation_data.epoch_boundary_root = hash_tree_root(epoch_boundary)` where `epoch_boundary` is the block at the most recent epoch boundary in the chain defined by `head` -- i.e. the `BeaconBlock` where `block.slot == get_epoch_start_slot(head.slot)`.
Set `attestation_data.epoch_boundary_root = hash_tree_root(epoch_boundary)` where `epoch_boundary` is the block at the most recent epoch boundary in the chain defined by `head` -- i.e. the `BeaconBlock` where `block.slot == get_epoch_start_slot(slot_to_epoch(head.slot))`.

_Note:_ This can be looked up in the state using `get_block_root(state, get_epoch_start_slot(head.slot))`.
_Note:_ This can be looked up in the state using `get_block_root(state, get_epoch_start_slot(slot_to_epoch(head.slot)))`.

##### Shard block root

Expand Down

0 comments on commit 81e8f53

Please sign in to comment.