Skip to content

Remove ValidatorsRegistrationMode#673

Merged
evgeny-stakewise merged 1 commit intomasterfrom
del-reg-mode
Mar 2, 2026
Merged

Remove ValidatorsRegistrationMode#673
evgeny-stakewise merged 1 commit intomasterfrom
del-reg-mode

Conversation

@evgeny-stakewise
Copy link
Copy Markdown
Contributor

@evgeny-stakewise evgeny-stakewise commented Feb 27, 2026

No description provided.

Copilot AI review requested due to automatic review settings February 27, 2026 18:55
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 mode logic by removing the ValidatorsRegistrationMode enum and replacing it with direct checks on settings.relayer_endpoint. This simplifies the codebase by eliminating an unnecessary abstraction layer - the presence or absence of a relayer endpoint naturally indicates which mode the system operates in.

Changes:

  • Removed ValidatorsRegistrationMode enum from typings.py and related imports
  • Removed validators_registration_mode parameter and field from settings.py
  • Replaced all mode enum checks with direct settings.relayer_endpoint truthiness checks

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/common/typings.py Removed ValidatorsRegistrationMode enum definition
src/config/settings.py Removed validators_registration_mode field and parameter from Settings class
src/withdrawals/tasks.py Replaced mode check with settings.relayer_endpoint check for fetching validator manager signature
src/validators/tasks.py Replaced mode checks with relayer endpoint checks in validator funding and registration logic
src/common/startup_check.py Updated startup checks to use relayer endpoint presence instead of mode enum
src/commands/start/base.py Simplified keystore/relayer initialization logic using relayer endpoint checks
src/commands/start/relayer.py Removed mode enum assignment, relying on relayer endpoint parameter instead
src/validators/signing/tests/test_common.py Renamed test method from test_api to test_relayer and updated its documentation

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

@evgeny-stakewise evgeny-stakewise merged commit 1eac04b into master Mar 2, 2026
12 checks passed
@evgeny-stakewise evgeny-stakewise deleted the del-reg-mode branch March 2, 2026 08:55
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