Skip to content

Conversation

@evgeny-stakewise
Copy link
Contributor

No description provided.

Copilot AI review requested due to automatic review settings December 30, 2025 18:45
Copy link
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
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.

settings_key = 'VALIDATORS_REGISTRY_CONTRACT_ADDRESS'

async def get_registry_root(self) -> Bytes32:
async def get_registry_root(self) -> HexStr:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

HexStr is more friendly, easier for logging.

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