Skip to content

Commit

Permalink
Update validator guide
Browse files Browse the repository at this point in the history
  • Loading branch information
hwwhww committed May 20, 2019
1 parent 4c5e054 commit a68aa82
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions specs/validator/0_beacon-chain-validator.md
Original file line number Diff line number Diff line change
Expand Up @@ -306,10 +306,12 @@ Set `attestation_data.beacon_block_root = signing_root(head_block)`.

##### Crosslink vote

Construct `attestation_data.crosslink` via the following
Construct `attestation_data.crosslink` via the following.

* Set `attestation_data.crosslink.shard = shard` where `shard` is the shard associated with the validator's committee.
* Set `attestation_data.crosslink.epoch = min(attestation_data.target_epoch, head_state.current_crosslinks[shard].epoch + MAX_EPOCHS_PER_CROSSLINK)`.
* Let `parent_crosslink = head_state.current_crosslinks[shard]`.
* Set `attestation_data.crosslink.start_epoch = parent_crosslink.end_epoch`.
* Set `attestation_data.crosslink.end_epoch = min(attestation_data.target_epoch, parent_crosslink.end_epoch + MAX_EPOCHS_PER_CROSSLINK)`.
* Set `attestation_data.crosslink.parent_root = hash_tree_root(head_state.current_crosslinks[shard])`.
* Set `attestation_data.crosslink.data_root = ZERO_HASH`. *Note*: This is a stub for Phase 0.

Expand Down

0 comments on commit a68aa82

Please sign in to comment.