Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated sendValidatorLiveness to use typedef client #8498

Merged
merged 1 commit into from
Aug 5, 2024

Conversation

rolfyone
Copy link
Contributor

@rolfyone rolfyone commented Aug 2, 2024

Also followed suit of the last PR that didn't persist request objects, and created a cache, although we probably want to share an existing one... initially this is probably going in the right direction...

partially addresses #7762

Documentation

  • I thought about documentation and added the doc-change-required label to this PR if updates are required.

Changelog

  • I thought about adding a changelog entry, and added one if I deemed necessary.

Also followed suit of the last PR that didn't persist request objects, and created a cache, although we probably want to share an existing one... initially this is probably going in the right direction...

partially addresses Consensys#7762

Signed-off-by: Paul Harris <[email protected]>
Copy link

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

PR Summary

Updated the validator liveness functionality to use the typedef client, improving consistency and maintainability.

  • validator/remote/src/main/java/tech/pegasys/teku/validator/remote/typedef/OkHttpValidatorTypeDefClient.java: Added sendValidatorsLiveness method; removed request object persistence.
  • validator/remote/src/main/java/tech/pegasys/teku/validator/remote/RemoteValidatorApiHandler.java: Updated to use OkHttpValidatorTypeDefClient for getValidatorsLiveness.
  • validator/remote/src/main/java/tech/pegasys/teku/validator/remote/apiclient/ValidatorRestApiClient.java: Removed sendValidatorsLiveness method.
  • validator/remote/src/main/java/tech/pegasys/teku/validator/remote/typedef/handlers/SendValidatorLivenessRequest.java: New handler for validator liveness requests.
  • validator/remote/src/test/java/tech/pegasys/teku/validator/remote/RemoteValidatorApiHandlerTest.java: Updated tests to use typeDefClient for validator liveness requests.

14 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings

@lucassaldanha lucassaldanha merged commit 98a1cc4 into Consensys:master Aug 5, 2024
16 checks passed
@rolfyone rolfyone deleted the validators-liveness branch August 5, 2024 01:50
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