Skip to content

Commit

Permalink
Merge pull request #878 from ethereum/JustinDrake-patch-8
Browse files Browse the repository at this point in the history
Missing typehint for `convert_to_indexed`
  • Loading branch information
hwwhww committed Apr 4, 2019
2 parents afdfb2a + 6ca3c64 commit f445846
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions specs/core/0_beacon-chain.md
Original file line number Diff line number Diff line change
Expand Up @@ -1160,9 +1160,9 @@ def verify_bitfield(bitfield: bytes, committee_size: int) -> bool:
### `convert_to_indexed`

```python
def convert_to_indexed(state: BeaconState, attestation: Attestation):
def convert_to_indexed(state: BeaconState, attestation: Attestation) -> IndexedAttestation:
"""
Convert an attestation to (almost) indexed-verifiable form
Convert ``attestation`` to (almost) indexed-verifiable form.
"""
attesting_indices = get_attestation_participants(state, attestation.data, attestation.aggregation_bitfield)
custody_bit_1_indices = get_attestation_participants(state, attestation.data, attestation.custody_bitfield)
Expand All @@ -1172,7 +1172,7 @@ def convert_to_indexed(state: BeaconState, attestation: Attestation):
custody_bit_0_indices=custody_bit_0_indices,
custody_bit_1_indices=custody_bit_1_indices,
data=attestation.data,
aggregate_signature=attestation.aggregate_signature
aggregate_signature=attestation.aggregate_signature,
)
```

Expand Down

0 comments on commit f445846

Please sign in to comment.