Skip to content

Keep wallet bind and P2P ports in .env; tighten installer heuristics - #4

Merged
DavidFeder merged 1 commit into
mainfrom
cursor/review-followups-7664
Sep 4, 2026
Merged

Keep wallet bind and P2P ports in .env; tighten installer heuristics#4
DavidFeder merged 1 commit into
mainfrom
cursor/review-followups-7664

Conversation

@DavidFeder

@DavidFeder DavidFeder commented Sep 4, 2026

Copy link
Copy Markdown
Owner

Implements the follow-ups from the repo review: make the LAN/localhost wallet bind and P2P ports survive git pull, stop advertising an unused validator setting, and make the installer less eager to mis-detect Omarchy or silently replace distro Docker.

Changes

  • HTTP_ADDR / WS_ADDR in .env — localhost-only wallet RPC is now HTTP_ADDR=127.0.0.1 + WS_ADDR=127.0.0.1 and ./restart.sh. Editing docker-compose.yml was a git-pull trap.
  • P2P ports in .envGETH_P2P_PORT, BEACON_P2P_TCP_PORT, BEACON_P2P_UDP_PORT. Installer UFW rules and port checks follow them.
  • Removed unused FEE_RECIPIENT from .env.example (this stack does not run a validator).
  • Omarchy detection requires an Arch-family OS before homedir/tool heuristics, so leftover ~/.local/share/omarchy on Ubuntu cannot steal the Debian Docker CE path.
  • Docker CE install warns, and confirms (or PULSE_ALLOW_DOCKER_CE=1) when docker.io / distro Compose / podman-docker is already installed.
  • Geth healthcheck via geth attach --exec eth.chainId (alpine image has geth, not curl). Beacon still uses depends_on: geth without service_healthy so a probe mismatch cannot dead-lock first boot.
  • status.sh prints bind mode, running image refs, and “do not send transactions yet” while either client is still syncing.

LAN wallet RPC on 0.0.0.0 remains the default.

Test plan

  • bash tests/test_common.sh
  • bash tests/test_beacon_flags.sh (source/README contracts; compose parse when Docker is present)
  • bash tests/test_image_pins.sh
  • shellcheck -x on all scripts (same command as CI)
  • CI tests / scripts on this PR
Open in Web Open in Cursor 

Keep localhost-only wallet RPC and custom P2P ports in .env instead of
compose edits. Drop unused FEE_RECIPIENT, require Arch before Omarchy
heuristics, and confirm before replacing distro Docker packages.

Co-authored-by: David Feder <DavidFeder@users.noreply.github.com>
@DavidFeder
DavidFeder marked this pull request as ready for review September 4, 2026 01:33
@DavidFeder
DavidFeder merged commit 545b5a9 into main Sep 4, 2026
1 check passed
@DavidFeder
DavidFeder deleted the cursor/review-followups-7664 branch September 4, 2026 01:35
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