Skip to content

Add EIP-7514 higher-churn-limit-to-lower tests#3602

Merged
hwwhww merged 1 commit into
devfrom
deneb-fork-transition
Feb 15, 2024
Merged

Add EIP-7514 higher-churn-limit-to-lower tests#3602
hwwhww merged 1 commit into
devfrom
deneb-fork-transition

Conversation

@hwwhww
Copy link
Copy Markdown
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 added the testing CI, actions, tests, testing infra label Feb 15, 2024
@hwwhww hwwhww mentioned this pull request Feb 15, 2024
6 tasks
Copy link
Copy Markdown
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
@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
Copy Markdown
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
Copy Markdown

@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

Labels

testing CI, actions, tests, testing infra

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants