Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 12 additions & 7 deletions spartan/aztec-network/templates/blob-sink.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,17 @@ spec:
- |
source /shared/config/service-addresses

until curl --silent --head --fail "${BOOT_NODE_HOST}/status" > /dev/null; do
echo "Waiting for boot node..."
sleep 5
done
echo "Boot node is ready!"
if [ -z "${REGISTRY_CONTRACT_ADDRESS:-}" ]; then
until curl --silent --head --fail "${BOOT_NODE_HOST}/status" > /dev/null; do
echo "Waiting for boot node..."
sleep 5
done
echo "Boot node is ready!"

output=$(node --no-warnings /usr/src/yarn-project/aztec/dest/bin/index.js get-node-info -u $BOOT_NODE_HOST --json)
export REGISTRY_CONTRACT_ADDRESS=$(echo $output | jq -r .l1ContractAddresses.registry)
fi

output=$(node --no-warnings /usr/src/yarn-project/aztec/dest/bin/index.js get-node-info -u $BOOT_NODE_HOST --json)
export REGISTRY_CONTRACT_ADDRESS=$(echo $output | jq -r .l1ContractAddresses.registry)
env
node --no-warnings /usr/src/yarn-project/aztec/dest/bin/index.js start --blob-sink
startupProbe:
Expand Down Expand Up @@ -108,6 +111,8 @@ spec:
value: "{{ .Values.telemetry.useGcloudLogging }}"
- name: L1_CHAIN_ID
value: "{{ .Values.ethereum.chainId }}"
- name: "REGISTRY_CONTRACT_ADDRESS"
value: "{{ .Values.aztec.contracts.registryAddress }}"
ports:
- containerPort: {{ .Values.blobSink.service.nodePort }}
resources:
Expand Down