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 fork logic for ePBS #6

Merged
merged 2 commits into from
Jun 25, 2024

Conversation

terencechain
Copy link

We need to review the case of how the inclusion list import restriction is handled at the first slot of the ePBS fork epoch.

Comment on lines 121 to 122
previous_inclusion_list_proposer=0, # [New in ePBS]
previous_inclusion_list_slot=0, # [New in ePBS]
Copy link
Owner

Choose a reason for hiding this comment

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

You need to set these to be the latest proposer/slot so that you can import the first payload, and the payload signature verification has to have an exception to not verify a signature from an IL before the fork.

Copy link
Author

Choose a reason for hiding this comment

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

I pushed it. It's now

        previous_inclusion_list_proposer=get_beacon_proposer_index(pre), # [New in ePBS]
        previous_inclusion_list_slot=pre.slot, # [New in ePBS]

I wont do the beacon chain changes in this PR but let's make a note of that

Comment on lines 123 to 125
latest_inclusion_list_proposer=0, # [New in ePBS]
latest_inclusion_list_slot=0, # [New in ePBS]
latest_block_hash=Hash32(), # [New in ePBS]
Copy link
Owner

Choose a reason for hiding this comment

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

Why the extra spacing?

latest_inclusion_list_proposer=0, # [New in ePBS]
latest_inclusion_list_slot=0, # [New in ePBS]
latest_block_hash=Hash32(), # [New in ePBS]
latest_full_slot=0, # [New in ePBS]
Copy link
Owner

Choose a reason for hiding this comment

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

Perhaps this one should also be pre.slot, there's no real use for this yet, but better to be safe

Copy link
Author

Choose a reason for hiding this comment

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

Makes sense. Thanks

@potuz potuz merged commit d0060c0 into potuz:epbs_stripped_out Jun 25, 2024
4 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants