From 5d56c135f9f2cc5083972314a6d828412b361494 Mon Sep 17 00:00:00 2001 From: Chao Zhang Date: Fri, 26 Jul 2024 15:59:36 +0200 Subject: [PATCH] fix again --- charts/tezos/scripts/smart-rollup-observer.sh | 15 ++++++++++++--- charts/tezos/templates/octez-rollup-node.yaml | 2 ++ 2 files changed, 14 insertions(+), 3 deletions(-) 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 }}