Skip to content

Remove redunancy for execution engines#3160

Closed
paulhauner wants to merge 6 commits into
sigp:unstablefrom
paulhauner:no-redundant-ees
Closed

Remove redunancy for execution engines#3160
paulhauner wants to merge 6 commits into
sigp:unstablefrom
paulhauner:no-redundant-ees

Conversation

@paulhauner

Copy link
Copy Markdown
Member

Issue Addressed

Resolves #3118

Proposed Changes

Removes support for redundant EEs, from now on there shall be one EE to rule them all!

Changes to CLI flags

  • --execution-endpoints is now a deprecated alias to --execution-endpoint
  • --jwt-secrets is now a deprecated alias to --execution-jwt
  • --jwt-id is now a deprecated alias to --execution-jwt-id
  • --jwt-version is now a deprecated alias to --execution-jwt-version

Breaking Changes

Whilst the --execution-endpoints and --jwt-secrets flags have been deprecated, they are still available as aliases to the new --execution-endpoint and --execution-jwt flags.

However, those flags will no longer support multiple values. Therefore, we have this matrix:

  • --execution-endpoints:
    • single value: not broken.
    • multiple values: broken.
  • --jwt-secrets:
    • single value: not broken.
    • multiple values: broken.

Additional Info

Please provide any additional information. For example, future considerations
or information useful for reviewers.

@paulhauner paulhauner added work-in-progress PR is a work-in-progress backwards-incompat Backwards-incompatible API change bellatrix Required to support the Bellatrix Upgrade labels Apr 14, 2022
@paulhauner

Copy link
Copy Markdown
Member Author

I'm going to close this due to merge conflicts and lack of time.

@paulhauner paulhauner closed this May 23, 2022
bors Bot pushed a commit that referenced this pull request Jun 22, 2022
…ate (#3257)

## Issue Addressed

Part of #3160 

## Proposed Changes
Use only the first url given in the execution engine, if more than one is provided log it.
This change only moves having multiple engines to one. The amount of code cleanup that can and should be done forward is not small and would interfere with ongoing PRs. I'm keeping the changes intentionally very very minimal.

## Additional Info

Future works:
- In [ `EngineError` ](https://github.com/sigp/lighthouse/blob/9c429d0764ed91cf56efb8a47a35a556b54a86a4/beacon_node/execution_layer/src/engines.rs#L173-L177) the id is not needed since it now has no meaning.
- the [ `first_success_without_retry` ](https://github.com/sigp/lighthouse/blob/9c429d0764ed91cf56efb8a47a35a556b54a86a4/beacon_node/execution_layer/src/engines.rs#L348-L351) function can return a single error.
- the [`first_success`](https://github.com/sigp/lighthouse/blob/9c429d0764ed91cf56efb8a47a35a556b54a86a4/beacon_node/execution_layer/src/engines.rs#L324) function can return a single error.
- After the redundancy is removed for the builders, we can probably make the [ `EngineErrors` ](https://github.com/sigp/lighthouse/blob/9c429d0764ed91cf56efb8a47a35a556b54a86a4/beacon_node/execution_layer/src/lib.rs#L69) carry a single error.
- Merge the [`Engines`](https://github.com/sigp/lighthouse/blob/9c429d0764ed91cf56efb8a47a35a556b54a86a4/beacon_node/execution_layer/src/engines.rs#L161-L165) struct and [`Engine` ](https://github.com/sigp/lighthouse/blob/9c429d0764ed91cf56efb8a47a35a556b54a86a4/beacon_node/execution_layer/src/engines.rs#L62-L67)
- Fix the associated configurations and cli params. Not sure if both are done in #3214

In general I think those changes can be done incrementally and in individual pull requests.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backwards-incompat Backwards-incompatible API change bellatrix Required to support the Bellatrix Upgrade work-in-progress PR is a work-in-progress

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant