Skip to content

slashing protection up to date for keys added mid run - #17411

Open
james-prysm wants to merge 6 commits into
developfrom
runtime-key-buckets
Open

slashing protection up to date for keys added mid run#17411
james-prysm wants to merge 6 commits into
developfrom
runtime-key-buckets

Conversation

@james-prysm

@james-prysm james-prysm commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

What type of PR is this?

Bug fix

What does this PR do? Why is it needed?

recheckValidatingKeysBucket shouldn't only run when there is a UpdatePublicKeysBuckets failure, we need to run it regardless for keys added mid run

Which issue(s) does this PR fix?

related to #17408

Other notes for review

Acknowledgements

  • I have read CONTRIBUTING.md.
  • I have included a uniquely named changelog fragment file.
  • I have added a description with sufficient context for reviewers to understand this PR.
  • I have tested that my changes work as expected and I added a testing plan to the PR description (if applicable).

Comment thread validator/client/validator.go Outdated
Comment on lines 279 to 282

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

isn't this the problem? it's gonna return for remote keymanager, and we won't create the buckets. or am i missing sth?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

the buckets should create regardless of the type, the early return is just for the keymanager api.

also shouldn't this fix somethign for local keymanager type anyways?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

thinking about it more it probably makes sense not to have that check either....

Comment thread validator/client/validator.go Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

what if an import happens before we reach this line of the goroutine? will we miss it until another account change?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

hmm there might be a race here

@james-prysm
james-prysm requested a review from a team as a code owner September 1, 2026 18:07
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.

2 participants