Merge pull request #2282 from benjaminion/altair-1
Make if condition more precise
This commit is contained in:
commit
6f07448883
|
@ -461,7 +461,7 @@ def process_attestation(state: BeaconState, attestation: Attestation) -> None:
|
||||||
|
|
||||||
# Participation flag indices
|
# Participation flag indices
|
||||||
participation_flag_indices = []
|
participation_flag_indices = []
|
||||||
if is_matching_head and is_matching_target and state.slot <= data.slot + MIN_ATTESTATION_INCLUSION_DELAY:
|
if is_matching_head and is_matching_target and state.slot == data.slot + MIN_ATTESTATION_INCLUSION_DELAY:
|
||||||
participation_flag_indices.append(TIMELY_HEAD_FLAG_INDEX)
|
participation_flag_indices.append(TIMELY_HEAD_FLAG_INDEX)
|
||||||
if is_matching_source and state.slot <= data.slot + integer_squareroot(SLOTS_PER_EPOCH):
|
if is_matching_source and state.slot <= data.slot + integer_squareroot(SLOTS_PER_EPOCH):
|
||||||
participation_flag_indices.append(TIMELY_SOURCE_FLAG_INDEX)
|
participation_flag_indices.append(TIMELY_SOURCE_FLAG_INDEX)
|
||||||
|
|
Loading…
Reference in New Issue