5656 __network=" --network=${NETWORK} "
5757fi
5858
59+
60+ # Assume we're not zk-enabled
61+ __engine=" --execution-endpoint ${EL_NODE} --execution-jwt /var/lib/lighthouse/beacon/ee-secret/jwtsecret"
62+
5963case " ${NODE_TYPE} " in
6064 archive)
6165 echo " Lighthouse archive node without pruning"
@@ -64,6 +68,27 @@ case "${NODE_TYPE}" in
6468 full|pruned)
6569 __prune=" "
6670 ;;
71+ pruned-with-zkproofs)
72+ if [[ ! " ${NETWORK} " = " mainnet" ]]; then
73+ echo " Lighthouse with zkProof verification only works on mainnet, as far as Eth Docker is aware."
74+ echo " Aborting."
75+ sleep 30
76+ exit 1
77+ fi
78+ echo " Lighthouse node with zkProof verification. HIGHLY experimental."
79+ echo " Please make sure that you have edited \" .env\" and changed:"
80+ echo " CL_EXTRAS=--boot-nodes enr:-Oy4QJgMz9S1Eb7s13nKIbulKC0nvnt7AEqbmwxnTdwzptxNCGWjc9ipteUaCwqlu2bZDoNz361vGC_IY4fbdkR1K9iCDeuHYXR0bmV0c4gAAAAAAAAABoNjZ2MEhmNsaWVudNGKTGlnaHRob3VzZYU4LjAuMYRldGgykK1TLOsGAAAAAEcGAAAAAACCaWSCdjSCaXCEisV68INuZmSEzCxc24RxdWljgiMpiXNlY3AyNTZrMaEDEIWq41UTcFUgL8LRletpbIwrrpxznIMN_F5jRgatngmIc3luY25ldHMAg3RjcIIjKIR6a3ZtAQ"
81+ echo " LH_SRC_BUILD_TARGET=ethproofs/zkattester-demo"
82+ echo " LH_SRC_REPO=https://github.com/ethproofs/lighthouse"
83+ echo " LH_DOCKERFILE=Dockerfile.source"
84+ echo " MEV_BOOST=true"
85+ echo " MEV_BUILD_FACTOR=100"
86+ echo " And have source-built Lighthouse with \" ./ethd update\" "
87+ echo " A PBS sidecar needs to be in COMPOSE_FILE, and MEV relays need to be configured"
88+ echo " Note the bootnodes ENR may have changed, check on the zkEVM attesting Telegram group!"
89+ __prune=" "
90+ __engine=" --execution-proofs"
91+ ;;
6792 * )
6893 echo " ERROR: The node type ${NODE_TYPE} is not known to Eth Docker's Lighthouse implementation."
6994 sleep 30
@@ -128,5 +153,5 @@ if [[ -f /var/lib/lighthouse/beacon/prune-marker ]]; then
128153else
129154# Word splitting is desired for the command line parameters
130155# shellcheck disable=SC2086
131- exec " $@ " ${__network} ${__mev_boost} ${__checkpoint_sync} ${__prune} ${__beacon_stats} ${__ipv6} ${CL_EXTRAS}
156+ exec " $@ " ${__network} ${__mev_boost} ${__checkpoint_sync} ${__engine} ${ __prune} ${__beacon_stats} ${__ipv6} ${CL_EXTRAS}
132157fi
0 commit comments