From 819f7629ae25d6dd3cd984cd72be8f9bce0c0f26 Mon Sep 17 00:00:00 2001 From: Chao Zhang Date: Tue, 30 Jul 2024 11:14:33 +0200 Subject: [PATCH] Update for evm state init check --- charts/tezos/scripts/evm-observer.sh | 2 +- charts/tezos/scripts/evm-sequencer.sh | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/charts/tezos/scripts/evm-observer.sh b/charts/tezos/scripts/evm-observer.sh index adfd803..08df7f8 100644 --- a/charts/tezos/scripts/evm-observer.sh +++ b/charts/tezos/scripts/evm-observer.sh @@ -6,7 +6,7 @@ ROLLUP_DATA_DIR="${TEZ_VAR}/rollup" EVM_DATA_DIR="${TEZ_VAR}/evm" EVM_CONFIG_FILE="${EVM_DATA_DIR}/config.json" -if [ ! -e "${EVM_DATA_DIR}/store/store.1.mapping" ]; then +if [ ! -e "${EVM_DATA_DIR}/store.sqlite" ]; then $TEZ_BIN/octez-evm-node init from rollup node ${ROLLUP_DATA_DIR} --data-dir ${EVM_DATA_DIR} fi diff --git a/charts/tezos/scripts/evm-sequencer.sh b/charts/tezos/scripts/evm-sequencer.sh index 0c00c63..e9d86a3 100644 --- a/charts/tezos/scripts/evm-sequencer.sh +++ b/charts/tezos/scripts/evm-sequencer.sh @@ -7,9 +7,8 @@ EVM_DATA_DIR="$TEZ_VAR/evm" set -x -if [ ! -e "/var/tezos/sequencer/store/store.1.mapping" ]; then - octez-evm-node init from rollup node ${ROLLUP_DATA_DIR} \ - --data-dir ${EVM_DATA_DIR} +if [ ! -e "${EVM_DATA_DIR}/store/store.dict" ]; then + $TEZ_BIN/octez-evm-node init from rollup node ${ROLLUP_DATA_DIR} --data-dir ${EVM_DATA_DIR} fi