Skip to content

Commit

Permalink
Siren: Fix when CL_NODE is comma-separated list
Browse files Browse the repository at this point in the history
Siren would use the BEACON_URL as-is to connect to, which works for
the Lighthouse VC but not for Siren. If it is a comma-separated list of
BNs, we just pick the first one to connect to.
  • Loading branch information
Pietje Puk committed Nov 4, 2024
1 parent f494142 commit 9332b78
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions siren/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,8 @@ fi
API_TOKEN=$(cat /var/lib/lighthouse/validators/api-token.txt)
export API_TOKEN

# In case there are multiple consensus nodes, use the first one
export BEACON_URL=${BEACON_URL%%,*}

echo "Log into Siren at https://my-node-ip/${SIREN_PORT} with password ${SESSION_PASSWORD}"
exec /app/docker-assets/docker-entrypoint.sh

0 comments on commit 9332b78

Please sign in to comment.