@@ -63,7 +63,6 @@ devprivkey=b6b15c8cb491557369f3c7d2c287b053eb229daa9c22138887752191c9520659
6363l1chainid=1337
6464simple=true
6565simple_with_validator=false
66-
6766while [[ $# -gt 0 ]]; do
6867 case $1 in
6968 --init)
@@ -106,6 +105,10 @@ while [[ $# -gt 0 ]]; do
106105 l2_espresso=true
107106 shift
108107 ;;
108+ --espresso-finality-node)
109+ enableEspressoFinalityNode=true
110+ shift
111+ ;;
109112 --latest-espresso-image)
110113 latest_espresso_image=true
111114 shift
@@ -234,6 +237,7 @@ while [[ $# -gt 0 ]]; do
234237 echo --no-tokenbridge don\' t build or launch tokenbridge
235238 echo --no-run does not launch nodes \( useful with build or init\)
236239 echo --no-simple run a full configuration with separate sequencer/batch-poster/validator/relayer
240+ echo --enable-finality-node enable espresso finality node
237241 echo
238242 echo script runs inside a separate docker. For SCRIPT-ARGS, run $0 script --help
239243 exit 0
@@ -294,6 +298,7 @@ if [ $batchposters -gt 2 ]; then
294298fi
295299
296300
301+
297302if $validate ; then
298303 NODES=" $NODES validator"
299304elif ! $simple ; then
@@ -308,6 +313,7 @@ if $l3node; then
308313 export ESPRESSO_DEPLOYER_ALT_MNEMONICS=" indoor dish desk flag debris potato excuse depart ticket judge file exit"
309314 export ESPRESSO_SEQUENCER_DEPLOYER_ALT_INDICES=" 6"
310315fi
316+
311317if $blockscout ; then
312318 NODES=" $NODES blockscout"
313319fi
@@ -397,6 +403,7 @@ if $force_init; then
397403 docker compose run --entrypoint sh geth -c " chown -R 1000:1000 /keystore"
398404 docker compose run --entrypoint sh geth -c " chown -R 1000:1000 /config"
399405
406+
400407 if $consensusclient ; then
401408 echo == Writing configs
402409 docker compose run scripts write-geth-genesis-config
@@ -454,7 +461,10 @@ if $force_init; then
454461 else
455462 echo == Writing configs
456463 docker compose run scripts write-config --espresso $l2_espresso --lightClientAddress $lightClientAddr
457-
464+ if $enableEspressoFinalityNode ; then
465+ echo == Writing configs for finality node
466+ docker compose run scripts write-config --espresso $l2_espresso --enableEspressoFinalityNode --lightClientAddress $lightClientAddr
467+ fi
458468 echo == Initializing redis
459469 docker compose up --wait redis
460470 docker compose run scripts redis-init --redundancy $redundantsequencers
0 commit comments