Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add guard when fill_prev_epoch is True in epoch 0 #3570

Merged
merged 1 commit into from
Jan 15, 2024

Conversation

etan-status
Copy link
Contributor

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.

`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`.
@hwwhww hwwhww merged commit 9b04d10 into ethereum:dev Jan 15, 2024
28 checks passed
@etan-status etan-status deleted the ts-attprevepoch branch January 15, 2024 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants