Skip to content

Commit

Permalink
Update again
Browse files Browse the repository at this point in the history
  • Loading branch information
puppetninja committed Jul 26, 2024
1 parent 861f7b1 commit 49b6c3b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
8 changes: 4 additions & 4 deletions charts/tezos/scripts/evm-observer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ set -e

TEZ_VAR=/var/tezos
TEZ_BIN=/usr/local/bin
ROLLUP_DATA_DIR="$TEZ_VAR/rollup"
EVM_DATA_DIR="$TEZ_VAR/evm"
ROLLUP_DATA_DIR="${TEZ_VAR}/rollup"
EVM_DATA_DIR="${TEZ_VAR}/evm"

set -x

if [ ! -e "${EVM_DATA_DIR}/store/store.1.mapping" ]; then
$TEZ_BIN/octez-evm-node init from rollup node ${ROLLUP_DATA_DIR} --data-dir ${SEQUENCER_DATA_DIR}
$TEZ_BIN/octez-evm-node init from rollup node ${ROLLUP_DATA_DIR} --data-dir ${EVM_DATA_DIR}
fi

CMD="$TEZ_BIN/octez-evm-node run observer \
Expand All @@ -21,4 +21,4 @@ CMD="$TEZ_BIN/octez-evm-node run observer \
--cors-origins '*' \
--cors-headers '*'
exec $CMD
exec $CMD
6 changes: 3 additions & 3 deletions charts/tezos/scripts/evm-sequencer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,20 @@ set -e
TEZ_VAR=/var/tezos
TEZ_BIN=/usr/local/bin
ROLLUP_DATA_DIR="$TEZ_VAR/rollup"
SEQUENCER_DATA_DIR="$TEZ_VAR/evm"
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 ${SEQUENCER_DATA_DIR}
--data-dir ${EVM_DATA_DIR}
fi


CMD="$TEZ_BIN/octez-evm-node run sequencer \
with endpoint http://127.0.0.1:8932 \
signing with edsk3rw6fcwjPe5xkGWAbSquLDQALKP8XyMhy4c6PQGr7qQKTYa8rX \
--data-dir ${SEQUENCER_DATA_DIR} \
--data-dir ${EVM_DATA_DIR} \
--time-between-blocks 6 \
--rpc-addr 0.0.0.0"

Expand Down
5 changes: 5 additions & 0 deletions charts/tezos/templates/octez-rollup-node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,8 @@ spec:
name: tezos-accounts
securityContext:
fsGroup: 1000
nodeSelector:
{{- toYaml $v.nodeSelector | nindent 8 }}
volumes:
- volume: var-volume
name: var-volume
Expand All @@ -170,6 +172,9 @@ spec:
resources:
requests:
storage: "400Gi"
{{- if $v.storageClassName }}
storageClassName: {{ $v.storageClassName }}
{{- end }}
---
{{- if $v.ingress | default false }}
{{- if $v.ingress.enabled | default false }}
Expand Down

0 comments on commit 49b6c3b

Please sign in to comment.