Fix typos in the beacon chain spec
This commit is contained in:
parent
966f2bf384
commit
257c83cc23
|
@ -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)
|
||||||
)
|
)
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue