mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-02-17 13:06:34 +00:00
parent
16435b6ce2
commit
8040044f69
@ -1095,11 +1095,8 @@ def is_surround_vote(attestation_data_1: AttestationData,
|
|||||||
source_epoch_2 = attestation_data_2.justified_epoch
|
source_epoch_2 = attestation_data_2.justified_epoch
|
||||||
target_epoch_1 = slot_to_epoch(attestation_data_1.slot)
|
target_epoch_1 = slot_to_epoch(attestation_data_1.slot)
|
||||||
target_epoch_2 = slot_to_epoch(attestation_data_2.slot)
|
target_epoch_2 = slot_to_epoch(attestation_data_2.slot)
|
||||||
return (
|
|
||||||
(source_epoch_1 < source_epoch_2) and
|
return source_epoch_1 < source_epoch_2 and target_epoch_2 < target_epoch_1
|
||||||
(source_epoch_2 + 1 == target_epoch_2) and
|
|
||||||
(target_epoch_2 < target_epoch_1)
|
|
||||||
)
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### `integer_squareroot`
|
### `integer_squareroot`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user