Skip to content

Commit 486a42a

Browse files
authored
fix: blob sink waits for reg address when needed (#13628)
same as #13623 but for master
1 parent 5d87f7a commit 486a42a

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

spartan/aztec-network/templates/blob-sink.yaml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,17 @@ spec:
4646
- |
4747
source /shared/config/service-addresses
4848
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
5459
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)
5760
env
5861
node --no-warnings /usr/src/yarn-project/aztec/dest/bin/index.js start --blob-sink
5962
startupProbe:
@@ -108,6 +111,8 @@ spec:
108111
value: "{{ .Values.telemetry.useGcloudLogging }}"
109112
- name: L1_CHAIN_ID
110113
value: "{{ .Values.ethereum.chainId }}"
114+
- name: "REGISTRY_CONTRACT_ADDRESS"
115+
value: "{{ .Values.aztec.contracts.registryAddress }}"
111116
ports:
112117
- containerPort: {{ .Values.blobSink.service.nodePort }}
113118
resources:

0 commit comments

Comments
 (0)