diff --git a/charts/tezos/scripts/evm-sequencer.sh b/charts/tezos/scripts/evm-sequencer.sh index fe9c370..d9082d9 100644 --- a/charts/tezos/scripts/evm-sequencer.sh +++ b/charts/tezos/scripts/evm-sequencer.sh @@ -2,18 +2,19 @@ set -e TEZ_VAR=/var/tezos TEZ_BIN=/usr/local/bin -CLIENT_DIR="$TEZ_VAR/client" ROLLUP_DATA_DIR="$TEZ_VAR/rollup" SEQUENCER_DATA_DIR="$TEZ_VAR/sequencer" set -x -octez-evm-node init from rollup node ${ROLLUP_DATA_DIR} \ ---data-dir ${SEQUENCER_DATA_DIR} +if [ ! -e "/var/tezos/sequencer/store/store.1.mapping" ]; then + octez-evm-node init from rollup node ${ROLLUP_DATA_DIR} \ + --data-dir ${SEQUENCER_DATA_DIR} +fi CMD="$TEZ_BIN/octez-evm-node run sequencer \ - with endpoint http://rollup-${MY_POD_NAME}:8932 \ + with endpoint http://127.0.0.1:8932 \ signing with edsk3rw6fcwjPe5xkGWAbSquLDQALKP8XyMhy4c6PQGr7qQKTYa8rX \ --data-dir ${SEQUENCER_DATA_DIR} \ --time-between-blocks 6 \