Fix typos in the beacon chain spec

This commit is contained in:
Anirudha Bose 2018-12-19 12:47:37 +01:00 committed by GitHub
parent 966f2bf384
commit 257c83cc23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1057,7 +1057,7 @@ def is_double_vote(attestation_data_1: AttestationData,
```python ```python
def is_surround_vote(attestation_data_1: AttestationData, def is_surround_vote(attestation_data_1: AttestationData,
attestation_data_2: AttestationData) -> bool attestation_data_2: AttestationData) -> bool:
""" """
Assumes ``attestation_data_1`` is distinct from ``attestation_data_2``. Assumes ``attestation_data_1`` is distinct from ``attestation_data_2``.
Returns True if the provided ``AttestationData`` are slashable Returns True if the provided ``AttestationData`` are slashable
@ -1067,7 +1067,7 @@ def is_surround_vote(attestation_data_1: AttestationData,
""" """
return ( return (
(attestation_data_1.justified_slot < attestation_data_2.justified_slot) and (attestation_data_1.justified_slot < attestation_data_2.justified_slot) and
(attestat_data_2.justified_slot + 1 == attestation_data_2.slot) and (attestation_data_2.justified_slot + 1 == attestation_data_2.slot) and
(attestation_data_2.slot < attestation_data_1.slot) (attestation_data_2.slot < attestation_data_1.slot)
) )
``` ```