shibarium heimdall: fix REST listen-address flag (--laddr, not --rest-server.addr)

heimdall crash-looped on 'unknown flag: --rest-server.addr'. Per heimdalld start
--help, the bone-fork binary takes --rest-server (bool) to enable REST/LCD and
--laddr (default tcp://0.0.0.0:1317) for its listen address — there is no
--rest-server.addr. Swap it. (The rest_server-injection + idempotent-init fixes
from the prior PR worked: init now skips re-init, fetches the heimdall-109 genesis,
no more 'rest_server already defined'.)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
rob
2026-06-20 04:30:59 +00:00
parent 39d2fa93e2
commit 25b0ab049c

View File

@@ -107,15 +107,17 @@ ct_seed_priv_validator_state "$CMT_HOME"
ct_log "Bootstrap complete. Starting heimdalld..."
# Start heimdalld with REST server enabled
# --rest-server enables the in-process REST/LCD server
# --rest-server.addr binds REST to 0.0.0.0:1317
# --rpc.laddr binds CometBFT RPC to 0.0.0.0:26657
# --p2p.laddr binds P2P to 0.0.0.0:<P2P_PORT>
# Start heimdalld with the in-process REST/LCD server enabled.
# --rest-server enables the REST/LCD server
# --laddr REST/LCD listen address (default tcp://0.0.0.0:1317) — NOT
# --rest-server.addr, which this heimdall build rejects as an
# "unknown flag".
# --rpc.laddr CometBFT RPC listen address (default is 127.0.0.1 — bind 0.0.0.0)
# --p2p.laddr P2P listen address on the salted P2P_PORT
exec heimdalld start \
--home "$CMT_HOME" \
--chain "$CHAIN" \
--rest-server \
--rest-server.addr=0.0.0.0:1317 \
--laddr=tcp://0.0.0.0:1317 \
--rpc.laddr=tcp://0.0.0.0:26657 \
--p2p.laddr=tcp://0.0.0.0:$P2P_PORT