Skip to content

Commit

Permalink
do not import data from rollup node if already imported
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasochem committed Feb 15, 2024
1 parent 9617b67 commit 02f5b5b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions charts/tezos/scripts/evm-sequencer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit 02f5b5b

Please sign in to comment.