Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions lighthouse-cl-only.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ services:
- BEACON_STATS_MACHINE=${BEACON_STATS_MACHINE}
- CL_EXTRAS=${CL_EXTRAS:-}
- NODE_TYPE=${CL_NODE_TYPE:-pruned}
- EL_NODE=${EL_NODE}
- IPV6=${IPV6:-false}
- CL_P2P_PORT=${CL_P2P_PORT:-9000}
- CL_QUIC_PORT=${CL_QUIC_PORT:-9001}
Expand Down Expand Up @@ -73,10 +74,6 @@ services:
- ${CL_QUIC_PORT:-9001}
- ${CL_MAX_PEER_COUNT:+--target-peers}
- ${CL_MAX_PEER_COUNT:+${CL_MAX_PEER_COUNT}}
- --execution-endpoint
- ${EL_NODE}
- --execution-jwt
- /var/lib/lighthouse/beacon/ee-secret/jwtsecret
- --debug-level=${LOG_LEVEL}
- --metrics
- --metrics-address
Expand Down
5 changes: 1 addition & 4 deletions lighthouse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ services:
- BEACON_STATS_MACHINE=${BEACON_STATS_MACHINE}
- CL_EXTRAS=${CL_EXTRAS:-}
- NODE_TYPE=${CL_NODE_TYPE:-pruned}
- EL_NODE=${EL_NODE}
- IPV6=${IPV6:-false}
- CL_P2P_PORT=${CL_P2P_PORT:-9000}
- CL_QUIC_PORT=${CL_QUIC_PORT:-9001}
Expand Down Expand Up @@ -83,10 +84,6 @@ services:
- ${CL_QUIC_PORT:-9001}
- ${CL_MAX_PEER_COUNT:+--target-peers}
- ${CL_MAX_PEER_COUNT:+${CL_MAX_PEER_COUNT}}
- --execution-endpoint
- ${EL_NODE}
- --execution-jwt
- /var/lib/lighthouse/beacon/ee-secret/jwtsecret
- --debug-level=${LOG_LEVEL}
- --metrics
- --metrics-address
Expand Down
27 changes: 26 additions & 1 deletion lighthouse/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ else
__network="--network=${NETWORK}"
fi


# Assume we're not zk-enabled
__engine="--execution-endpoint ${EL_NODE} --execution-jwt /var/lib/lighthouse/beacon/ee-secret/jwtsecret"

case "${NODE_TYPE}" in
archive)
echo "Lighthouse archive node without pruning"
Expand All @@ -64,6 +68,27 @@ case "${NODE_TYPE}" in
full|pruned)
__prune=""
;;
pruned-with-zkproofs)
if [[ ! "${NETWORK}" = "mainnet" ]]; then
echo "Lighthouse with zkProof verification only works on mainnet, as far as Eth Docker is aware."
echo "Aborting."
sleep 30
exit 1
fi
echo "Lighthouse node with zkProof verification. HIGHLY experimental."
echo "Please make sure that you have edited \".env\" and changed:"
echo "CL_EXTRAS=--boot-nodes enr:-Oy4QJgMz9S1Eb7s13nKIbulKC0nvnt7AEqbmwxnTdwzptxNCGWjc9ipteUaCwqlu2bZDoNz361vGC_IY4fbdkR1K9iCDeuHYXR0bmV0c4gAAAAAAAAABoNjZ2MEhmNsaWVudNGKTGlnaHRob3VzZYU4LjAuMYRldGgykK1TLOsGAAAAAEcGAAAAAACCaWSCdjSCaXCEisV68INuZmSEzCxc24RxdWljgiMpiXNlY3AyNTZrMaEDEIWq41UTcFUgL8LRletpbIwrrpxznIMN_F5jRgatngmIc3luY25ldHMAg3RjcIIjKIR6a3ZtAQ"
echo "LH_SRC_BUILD_TARGET=ethproofs/zkattester-demo"
echo "LH_SRC_REPO=https://github.com/ethproofs/lighthouse"
echo "LH_DOCKERFILE=Dockerfile.source"
echo "MEV_BOOST=true"
echo "MEV_BUILD_FACTOR=100"
echo "And have source-built Lighthouse with \"./ethd update\""
echo "A PBS sidecar needs to be in COMPOSE_FILE, and MEV relays need to be configured"
echo "Note the bootnodes ENR may have changed, check on the zkEVM attesting Telegram group!"
__prune=""
__engine="--execution-proofs"
;;
*)
echo "ERROR: The node type ${NODE_TYPE} is not known to Eth Docker's Lighthouse implementation."
sleep 30
Expand Down Expand Up @@ -128,5 +153,5 @@ if [[ -f /var/lib/lighthouse/beacon/prune-marker ]]; then
else
# Word splitting is desired for the command line parameters
# shellcheck disable=SC2086
exec "$@" ${__network} ${__mev_boost} ${__checkpoint_sync} ${__prune} ${__beacon_stats} ${__ipv6} ${CL_EXTRAS}
exec "$@" ${__network} ${__mev_boost} ${__checkpoint_sync} ${__engine} ${__prune} ${__beacon_stats} ${__ipv6} ${CL_EXTRAS}
fi
Loading