Etan Kissling 0e155327fd
Add guard when fill_prev_epoch is True in epoch 0
`state_transition_with_full_block` takes two flags, `fill_cur_epoch`
and `fill_prev_epoch`, to control what attestations to include into
the new testing block.

While `fill_cur_epoch` uses `MIN_ATTESTATION_INCLUSION_DELAY` as the
minimum slot before taking effect, `fill_prev_epoch` results in an
annoying assert, requiring caller to work around the case of calling
the function as usual at the start.

This adds a similar minimum slot `SLOTS_PER_EPOCH` for `fill_prev_epoch`
before which the flag is ignored, same as for `fill_cur_epoch`.
2024-01-09 15:41:35 +01:00
..
2023-11-14 12:06:33 +03:00
2023-11-30 23:06:27 +08:00
2023-12-15 01:03:35 +08:00
2023-12-07 22:22:49 +01:00
2023-07-05 17:18:54 +02:00