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 EIP-7514 higher-churn-limit-to-lower tests #3602

Merged
merged 1 commit into from
Feb 15, 2024
Merged

Conversation

hwwhww
Copy link
Contributor

@hwwhww hwwhww commented Feb 15, 2024

Address #3458

Description

Add fork transition test case where the churn limit was higher than MAX_PER_EPOCH_ACTIVATION_CHURN_LIMIT but will be reduced to MAX_PER_EPOCH_ACTIVATION_CHURN_LIMIT at fork boundary due to EIP-7514.

@hwwhww hwwhww mentioned this pull request Feb 15, 2024
6 tasks
Copy link
Member

@ralexstokes ralexstokes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@hwwhww hwwhww merged commit b696174 into dev Feb 15, 2024
30 checks passed
@hwwhww hwwhww deleted the deneb-fork-transition branch February 15, 2024 18:47
assert spec.get_current_epoch(state) == fork_epoch

yield "blocks", []
yield "post", state
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test format does not support this, see https://github.com/ethereum/consensus-specs/blob/dev/tests/formats/transition/README.md

post is "A SSZ-snappy encoded BeaconState according to the specification of the post fork, the state after running the block transitions"

Therefore, you need to add a block, as post is the last applied block's immediate post-state.

I guess the easiest fix is to add some more empty slots and then just add 1 more block to ensure that everything was processed correctly.

Copy link

@yawayl yawayl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

\

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.

4 participants