Skip to content

Commit

Permalink
Update 0_beacon-chain.md
Browse files Browse the repository at this point in the history
  • Loading branch information
terencechain committed Apr 4, 2019
1 parent f445846 commit 5a77e61
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions specs/core/0_beacon-chain.md
Original file line number Diff line number Diff line change
Expand Up @@ -1041,9 +1041,12 @@ def verify_merkle_branch(leaf: Bytes32, proof: List[Bytes32], depth: int, index:
```python
def get_crosslink_committee_for_attestation(state: BeaconState,
attestation_data: AttestationData) -> List[ValidatorIndex]:
# Find the committee in the list with the desired shard
"""
Return the crosslink committee corresponding to ``attestation_data``.
"""
crosslink_committees = get_crosslink_committees_at_slot(state, attestation_data.slot)


# Find the committee in the list with the desired shard
assert attestation_data.shard in [shard for _, shard in crosslink_committees]
crosslink_committee = [committee for committee, shard in crosslink_committees if shard == attestation_data.shard][0]

Expand Down

0 comments on commit 5a77e61

Please sign in to comment.