diff --git a/charts/tezos/scripts/smart-rollup-observer.sh b/charts/tezos/scripts/smart-rollup-observer.sh index 4bdc28c..bf27ea0 100644 --- a/charts/tezos/scripts/smart-rollup-observer.sh +++ b/charts/tezos/scripts/smart-rollup-observer.sh @@ -1,13 +1,22 @@ -set -e +set -ex TEZ_VAR=/var/tezos TEZ_BIN=/usr/local/bin -ROLLUP_DATA_DIR="$TEZ_VAR/rollup" +ROLLUP_DATA_DIR="${TEZ_VAR}/rollup" + +$TEZ_BIN/octez-smart-rollup-node init observer \ + config for "${ROLLUP_ADDRESS}" \ + with operators \ + --history-mode archive \ + --data-dir "${ROLLUP_DATA_DIR}" \ + --rpc-addr 0.0.0.0 \ + --pre-images-endpoint "${ROLLUP_PREIMAGES_ENDPOINT}" \ + --force CMD="$TEZ_BIN/octez-smart-rollup-node \ --endpoint http://tezos-node-rpc:8732 \ run \ - --data-dir ${ROLLUP_DATA_DIR}" \ + --data-dir ${ROLLUP_DATA_DIR} \ --acl-override allow-all \ --log-kernel-debug" diff --git a/charts/tezos/templates/octez-rollup-node.yaml b/charts/tezos/templates/octez-rollup-node.yaml index c171335..433039c 100644 --- a/charts/tezos/templates/octez-rollup-node.yaml +++ b/charts/tezos/templates/octez-rollup-node.yaml @@ -74,6 +74,8 @@ spec: env: - name: ROLLUP_ADDRESS value: {{ $v.rollup_address }} + - name: ROLLUP_PREIMAGES_ENDPOINT + values: {{ $v.preimages_endpoins }} - name: OPERATORS_PARAMS value: > {{- range $key, $value := $v.operators }}