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

Caplin: Fixed archive node validator set lists. #9886

Merged
merged 4 commits into from
Apr 9, 2024
Merged

Conversation

Giulio2002
Copy link
Contributor

@Giulio2002 Giulio2002 commented Apr 8, 2024

Basically we keep the history of somewhat static fields in memory of our validatorset (this is cheap). however when restarting the node and reading these static fields, we do not reset them to the closes valid slot for incremental processing

@Giulio2002 Giulio2002 enabled auto-merge (squash) April 8, 2024 22:50
@Giulio2002 Giulio2002 changed the title Fixed archive CL pks Caplin: Fixed archive node validator set lists. Apr 8, 2024
@Giulio2002 Giulio2002 requested a review from domiwei April 8, 2024 22:51
@@ -230,7 +275,7 @@ func (s *StaticValidatorTable) AddValidator(v solid.Validator, validatorIndex, s
return nil
}
s.validatorTable = append(s.validatorTable, NewStaticValidatorFromValidator(v, slot))
if validatorIndex >= uint64(len(s.validatorTable)) {
if validatorIndex != uint64(len(s.validatorTable))-1 {
Copy link
Member

@domiwei domiwei Apr 9, 2024

Choose a reason for hiding this comment

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

Can't we remove this param validatorIndex?

@Giulio2002 Giulio2002 merged commit 012199f into devel Apr 9, 2024
13 checks passed
@Giulio2002 Giulio2002 deleted the fix-archive-cl branch April 9, 2024 07:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants