File tree Expand file tree Collapse file tree 1 file changed +12
-7
lines changed
spartan/aztec-network/templates Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -46,14 +46,17 @@ spec:
46
46
- |
47
47
source /shared/config/service-addresses
48
48
49
- until curl --silent --head --fail "${BOOT_NODE_HOST}/status" > /dev/null; do
50
- echo "Waiting for boot node..."
51
- sleep 5
52
- done
53
- echo "Boot node is ready!"
49
+ if [ -z "${REGISTRY_CONTRACT_ADDRESS:-}" ]; then
50
+ until curl --silent --head --fail "${BOOT_NODE_HOST}/status" > /dev/null; do
51
+ echo "Waiting for boot node..."
52
+ sleep 5
53
+ done
54
+ echo "Boot node is ready!"
55
+
56
+ output=$(node --no-warnings /usr/src/yarn-project/aztec/dest/bin/index.js get-node-info -u $BOOT_NODE_HOST --json)
57
+ export REGISTRY_CONTRACT_ADDRESS=$(echo $output | jq -r .l1ContractAddresses.registry)
58
+ fi
54
59
55
- output=$(node --no-warnings /usr/src/yarn-project/aztec/dest/bin/index.js get-node-info -u $BOOT_NODE_HOST --json)
56
- export REGISTRY_CONTRACT_ADDRESS=$(echo $output | jq -r .l1ContractAddresses.registry)
57
60
env
58
61
node --no-warnings /usr/src/yarn-project/aztec/dest/bin/index.js start --blob-sink
59
62
startupProbe :
@@ -108,6 +111,8 @@ spec:
108
111
value : " {{ .Values.telemetry.useGcloudLogging }}"
109
112
- name : L1_CHAIN_ID
110
113
value : " {{ .Values.ethereum.chainId }}"
114
+ - name : " REGISTRY_CONTRACT_ADDRESS"
115
+ value : " {{ .Values.aztec.contracts.registryAddress }}"
111
116
ports :
112
117
- containerPort : {{ .Values.blobSink.service.nodePort }}
113
118
resources :
You can’t perform that action at this time.
0 commit comments