Skip to content

fix: add HOST_IP support to nethermind entrypoint#1046

Open
mehmetkr-31 wants to merge 1 commit intobase:mainfrom
mehmetkr-31:fix/nethermind-host-ip-support
Open

fix: add HOST_IP support to nethermind entrypoint#1046
mehmetkr-31 wants to merge 1 commit intobase:mainfrom
mehmetkr-31:fix/nethermind-host-ip-support

Conversation

@mehmetkr-31
Copy link
Copy Markdown

Summary

Adds HOST_IP support to the nethermind execution client entrypoint, matching the existing behavior in the geth entrypoint.

Problem

The geth-entrypoint script already respects the HOST_IP environment variable and passes --nat=extip:$HOST_IP to improve peer discoverability. However, the nethermind-entrypoint completely ignores HOST_IP, causing operators who choose the nethermind client to have worse peer connectivity.

Solution

Add the same conditional check (if [ "${HOST_IP:+x}" = x ]) to the nethermind entrypoint and append --Network.ExternalIp=$HOST_IP to ADDITIONAL_ARGS.

Impact

  • Nethermind operators can now advertise their public IP for better P2P peer discovery.
  • Behavior is consistent across supported execution clients (geth, nethermind).

Checklist

  • Change is minimal and focused.
  • Follows the same pattern used in geth-entrypoint.
  • No breaking changes.

The geth entrypoint already supports HOST_IP via --nat=extip, but the
nethermind entrypoint ignores it entirely. This causes peer connectivity
issues for operators running the nethermind client.

Add the same conditional logic to pass --Network.ExternalIp when HOST_IP
is set, aligning nethermind behavior with geth.
@cb-heimdall
Copy link
Copy Markdown
Collaborator

🟡 Heimdall Review Status

Requirement Status More Info
Reviews 🟡 0/1
Denominator calculation
Show calculation
1 if user is bot 0
1 if user is external 0
2 if repo is sensitive 0
From .codeflow.yml 1
Additional review requirements
Show calculation
Max 0
0
From CODEOWNERS 0
Global minimum 0
Max 1
1
1 if commit is unverified 0
Sum 1

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