Skip to content

Fix stale validators manager signature#631

Merged
evgeny-stakewise merged 3 commits intomasterfrom
stale-sig
Jan 13, 2026
Merged

Fix stale validators manager signature#631
evgeny-stakewise merged 3 commits intomasterfrom
stale-sig

Conversation

@evgeny-stakewise
Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings January 13, 2026 11:23
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR refactors the validator registration flow to handle validators manager signature generation more efficiently. The key improvement is computing the validators registry root once at the beginning and detecting when it changes during the approval polling loop.

Changes:

  • Centralized validators manager signature generation logic to avoid duplication between AUTO and relayer modes
  • Added registry root change detection in the approval polling loop with a new exception type
  • Removed unused exception class and dependency

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 2 comments.

File Description
src/validators/tasks.py Moved validators registry root fetch and manager signature generation outside mode-specific branches; removed handling of MissingAvailableValidatorsException
src/validators/oracles.py Added registry root change detection; simplified approval request recreation logic by removing redundant registry root comparison
src/validators/exceptions.py Added RegistryRootChangedError exception; removed unused MissingAvailableValidatorsException
pyproject.toml Removed unused aiohttp dependency

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@evgeny-stakewise evgeny-stakewise merged commit 3a53fa4 into master Jan 13, 2026
6 of 8 checks passed
@evgeny-stakewise evgeny-stakewise deleted the stale-sig branch January 13, 2026 14:47
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.

3 participants