Fix attestation step order in FCR test vectors - #5627
Open
eserilev wants to merge 1 commit into
Open
Conversation
…he step order matches the tick order
syjn99
approved these changes
Sep 11, 2026
syjn99
left a comment
Contributor
There was a problem hiding this comment.
LGTM from Prysm side: we're using a hacky way to accommodate this issue:
Contributor
|
Don't LH and Prysm test runners cache attestations to apply them after the tick like it would happen in a real network? |
Contributor
Author
|
Yeah but we disable queueing future attestations when running fork choice compliance and FCR tests |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The FCR test vectors list each slot's attestation steps before the tick that moves the test to the next slot. The test generator applies them after that tick. When lighthouse replays the steps as written, we reject the attestation as a future-slot attestation.
FCRTest.attestrecords the attestation step when it creates the attestationFCRTest.next_slotticks first then applies the attestationThis PR fixes this issue by recording the attestation step in
apply_attestations, right afteron_attestationruns (instead of when its created). This allows for the attestation step to land after the tick. Also had to tweak some things to make sure duplicate attestation steps werent created.AI disclosure: Fable helped me debug, find the issue and write a fix. I've done a self review and understand the issue.