Skip to content

refactor: use central flag name for validator HTTP server port #15236

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

Merged
merged 3 commits into from
Aug 9, 2025

Conversation

tomasandroil
Copy link
Contributor

What does this PR do? Why is it needed?

This PR replaces the hardcoded "grpc-gateway-port" string with a reference to flags.HTTPServerPort.Name, ensuring consistency across the codebase when defining the validator client's HTTP server port.

This change is minor and safe, as the referenced constant holds the same value ("grpc-gateway-port") and prevents future desynchronization if the flag name ever changes.

Which issues(s) does this PR fix?

None.

Other notes for review

No behavior or logic is changed; this is a minor internal refactor. No other files are affected (e.g., lighthouse or non-prysm clients).

Acknowledgements

@CLAassistant
Copy link

CLAassistant commented Apr 30, 2025

CLA assistant check
All committers have signed the CLA.

@prestonvanloon prestonvanloon enabled auto-merge June 2, 2025 16:42
@prestonvanloon
Copy link
Member

Thanks! That was an easy TODO 😄

@tomasandroil
Copy link
Contributor Author

Hi @prestonvanloon 👋

Thanks again for the review and approval! I’ve just updated the branch with develop, but the workflows are now pending manual approval.

Let me know if there's anything else I can help with to move this forward.

@prestonvanloon prestonvanloon added this pull request to the merge queue Aug 9, 2025
Merged via the queue into OffchainLabs:develop with commit 921ff23 Aug 9, 2025
14 checks passed
jtraglia pushed a commit to jtraglia/prysm that referenced this pull request Aug 11, 2025
…ainLabs#15236)

* Update validator.go

* Create tomasandroil_replace_grpc_gateway_flag_name.md
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