Skip to content

Removed redundant checks from _send_approval_request#626

Merged
evgeny-stakewise merged 7 commits intomasterfrom
fix-approvals
Jan 7, 2026
Merged

Removed redundant checks from _send_approval_request#626
evgeny-stakewise merged 7 commits intomasterfrom
fix-approvals

Conversation

@evgeny-stakewise
Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings December 30, 2025 18:45
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 removes redundant error handling checks from the _send_approval_request function that were verifying if the registry root or validator index had changed during network failures. The code is simplified by removing the try-except block and associated custom exception classes.

Key Changes:

  • Removed custom exception classes RegistryRootChangedError and ValidatorIndexChangedError from the exceptions module
  • Simplified _send_approval_request function by removing error handling that checked for registry state changes
  • Removed unused imports related to the deleted validation logic

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/validators/oracles.py Removed try-except block and registry/validator index validation from _send_approval_request, cleaned up unused imports
src/validators/exceptions.py Deleted custom exception classes and error message constants that are no longer needed

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

Copilot AI review requested due to automatic review settings December 31, 2025 12:10
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

Copilot reviewed 9 out of 9 changed files in this pull request and generated 1 comment.


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

Copilot AI review requested due to automatic review settings January 5, 2026 16:14
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

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


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

@evgeny-stakewise evgeny-stakewise merged commit a8e3297 into master Jan 7, 2026
8 checks passed
@evgeny-stakewise evgeny-stakewise deleted the fix-approvals branch January 7, 2026 08:22
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