From 2c25ed9062f7a5f7fc160c55b05affe77f343111 Mon Sep 17 00:00:00 2001 From: Gregory Markou Date: Wed, 16 Jan 2019 14:05:53 -0500 Subject: [PATCH 1/2] fix typo with get_attestation_participants --- specs/core/0_beacon-chain.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/specs/core/0_beacon-chain.md b/specs/core/0_beacon-chain.md index 989513bd6..ebf430eb8 100644 --- a/specs/core/0_beacon-chain.md +++ b/specs/core/0_beacon-chain.md @@ -1010,7 +1010,7 @@ def get_beacon_proposer_index(state: BeaconState, #### `merkle_root` ```python -def merkle_root(values): +def merkle_root(values: [hash32]) -> hash32: """ Merkleize ``values`` (where ``len(values)`` is a power of two) and return the Merkle root. """ @@ -1032,8 +1032,8 @@ def get_attestation_participants(state: BeaconState, # Find the committee in the list with the desired shard crosslink_committees = get_crosslink_committees_at_slot(state, attestation_data.slot) - - assert attestation.shard in [shard for _, shard in crosslink_committees] + + 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] assert len(participation_bitfield) == (len(committee) + 7) // 8 From e5ea67f4acf960b00550b4b7cebbfd591330827c Mon Sep 17 00:00:00 2001 From: Hsiao-Wei Wang Date: Wed, 16 Jan 2019 14:39:00 -0500 Subject: [PATCH 2/2] Update specs/core/0_beacon-chain.md Co-Authored-By: GregTheGreek --- specs/core/0_beacon-chain.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specs/core/0_beacon-chain.md b/specs/core/0_beacon-chain.md index ebf430eb8..078a92add 100644 --- a/specs/core/0_beacon-chain.md +++ b/specs/core/0_beacon-chain.md @@ -1010,7 +1010,7 @@ def get_beacon_proposer_index(state: BeaconState, #### `merkle_root` ```python -def merkle_root(values: [hash32]) -> hash32: +def merkle_root(values: List[Hash32]) -> Hash32: """ Merkleize ``values`` (where ``len(values)`` is a power of two) and return the Merkle root. """