Skip to content

Commit

Permalink
Update for evm state init check
Browse files Browse the repository at this point in the history
  • Loading branch information
puppetninja committed Jul 30, 2024
1 parent f1c1cd2 commit 819f762
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/tezos/scripts/evm-observer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
5 changes: 2 additions & 3 deletions charts/tezos/scripts/evm-sequencer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit 819f762

Please sign in to comment.