Skip to content

Remove the Epoch From Simplex Epoch Info - #587

Merged
yacovm merged 3 commits into
mainfrom
remove-epoch-sei
Sep 9, 2026
Merged

Remove the Epoch From Simplex Epoch Info#587
yacovm merged 3 commits into
mainfrom
remove-epoch-sei

Conversation

@samliok

@samliok samliok commented Sep 9, 2026

Copy link
Copy Markdown
Collaborator

The value should always be the same as the value in the protocol metadata, so there is no point in having a duplicate field

Comment thread msm/encoding.go
}
if other == nil {
return ei == nil
return false

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

why?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

because ei can never be nil here

Comment thread msm/encoding.go
// It is set to the hash of the zero block in the first epoch, and in subsequent epochs it is set to be
// the hash of the sealing block of the previous epoch.
// This is used to be able to quickly fetch and verify the sealing blocks without having to retrieve the interleaving blocks,
// which allows to bootstrap the BLS keys of the validator set for each epoch before fully syncing the interleaving blocks.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

we should decrement all field numbers by 1

yacovm
yacovm previously approved these changes Sep 9, 2026
@yacovm

yacovm commented Sep 9, 2026

Copy link
Copy Markdown
Collaborator

LGTM otherwise

@yacovm
yacovm merged commit 6599714 into main Sep 9, 2026
7 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