def METHOD_NAME(spec, state):
    next_epoch_via_block(spec, state)
    state.previous_epoch_participation = [0] * len(state.validators)
    state.current_epoch_participation = [get_full_flags(spec)] * len(state.validators)
    yield from run_process_participation_flag_updates(spec, state)