You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: extract shared get_public_ip into helpers.sh
The get_public_ip() function was duplicated verbatim in both
op-node-entrypoint and base-consensus-entrypoint (23 lines each).
Any future change to IP detection logic would need to be made in two
places, increasing the risk of drift.
- Create helpers.sh with a single, documented get_public_ip function.
- Replace the inline definitions in op-node-entrypoint and
base-consensus-entrypoint with source ./helpers.sh.
- Add COPY helpers.sh . to geth, reth, and nethermind Dockerfiles so
the helper is available in all final images.
No functional change.
0 commit comments