def METHOD_NAME(spec, state, current=True, previous=True):
    assert is_post_altair(spec)
    for index in range(len(state.validators)):
        if current:
            state.current_epoch_participation[index] = spec.ParticipationFlags(0)
        if previous:
            state.previous_epoch_participation[index] = spec.ParticipationFlags(0)