mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-02-17 21:16:52 +00:00
Merge pull request #337 from onyb/patch-1
Fix typos in the beacon chain spec
This commit is contained in:
commit
4077f4c558
@ -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…
x
Reference in New Issue
Block a user