Deal with attestations from previous forks

This commit is contained in:
Potuz 2024-07-03 14:22:50 -03:00
parent 53aaf26ba2
commit 3d48e72570
1 changed files with 3 additions and 1 deletions

View File

@ -358,8 +358,10 @@ def get_attesting_indices(state: BeaconState, attestation: Attestation) -> Set[V
committee_offset += len(committee)
if compute_epoch_at_slot(attestation.data.slot) < EIP7732_FORK_EPOCH:
return output
ptc = get_ptc(state, attestation.data.slot)
return set([i for i in output if i not in ptc])
return set(i for i in output if i not in ptc)
```
#### `get_payload_attesting_indices`