Files
consensus-specs/tests/core/pyspec/eth2spec
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
..
2021-12-29 13:02:36 +01:00
2021-06-24 09:24:58 -07:00
2023-10-17 18:30:39 +08:00
2023-12-04 23:06:27 +08:00