diff --git a/tests/core/pyspec/eth2spec/test/helpers/attestations.py b/tests/core/pyspec/eth2spec/test/helpers/attestations.py index 6cd35c538..7fecfd7cc 100644 --- a/tests/core/pyspec/eth2spec/test/helpers/attestations.py +++ b/tests/core/pyspec/eth2spec/test/helpers/attestations.py @@ -280,7 +280,7 @@ def state_transition_with_full_block(spec, ) for attestation in attestations: block.body.attestations.append(attestation) - if fill_prev_epoch: + if fill_prev_epoch and state.slot >= spec.SLOTS_PER_EPOCH: slot_to_attest = state.slot - spec.SLOTS_PER_EPOCH + 1 attestations = get_valid_attestation_at_slot( state,