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

Filter out indices in the caches which are larger than the validators in the state #8171

Merged

Conversation

StefanBratanov
Copy link
Contributor

PR Description

This was the logic before and got removed by mistake in #8165

final Optional<Integer> validatorIndex = validatorIndices.getCached(publicKey);
if (validatorIndex.isPresent()) {
   return validatorIndex.filter(index -> index < state.getValidators().size());
}

Fixed Issue(s)

N/A

Documentation

  • I thought about documentation and added the doc-change-required label to this PR if updates are required.

Changelog

  • I thought about adding a changelog entry, and added one if I deemed necessary.

@StefanBratanov StefanBratanov enabled auto-merge (squash) April 4, 2024 19:40
@StefanBratanov StefanBratanov merged commit 4911b1d into Consensys:master Apr 4, 2024
16 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