Skip to content

Commit

Permalink
Tweak a little bit
Browse files Browse the repository at this point in the history
  • Loading branch information
puppetninja committed Jul 31, 2024
1 parent cb6e2de commit bed335b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion charts/tezos/scripts/evm-observer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ ROLLUP_DATA_DIR="${TEZ_VAR}/rollup"
EVM_DATA_DIR="${TEZ_VAR}/evm"
EVM_CONFIG_FILE="${EVM_DATA_DIR}/config.json"

EVM_CONFIGMAP_DIR="${TEZ_VAR}/evm-config"
EVM_CONFIGMAP_CONFIG_FILE="${EVM_CONFIGMAP_DIR}/config.json"

# Wait till rollup node to be fully synchronized to run init from rollup command
WAIT_LIMIT=30
COUNTER=1
Expand All @@ -25,13 +28,15 @@ if [ ! -e "${EVM_DATA_DIR}/store.sqlite" ]; then
fi

# Provide basic config if there is no config specified in values.yaml
if [ ! -e "${EVM_CONFIG_FILE}" ]; then
if [ ! -e "${EVM_CONFIGMAP_CONFIG_FILE}" ]; then
cat > "${EVM_CONFIG_FILE}" << EOF
{ "rpc-addr": "0.0.0.0", "cors_origins": [ "*" ],
"cors_headers": [ "*" ],
"rollup_node_endpoint": "http://127.0.0.1:8932", "verbose": "notice",
"max_active_connections": 8000 }
EOF
else
cp -vf ${EVM_CONFIGMAP_CONFIG_FILE} ${EVM_CONFIG_FILE}
fi

CMD="$TEZ_BIN/octez-evm-node run observer \
Expand Down
2 changes: 1 addition & 1 deletion charts/tezos/templates/octez-rollup-node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ spec:
- mountPath: /var/tezos
name: var-volume
{{- if $v.evm.config }}
- mountPath: /var/tezos/evm
- mountPath: /var/tezos/evm-config
name: evm-config-volume
subpathsubPath: config.json
{{- end }}
Expand Down

0 comments on commit bed335b

Please sign in to comment.