From ef26c0dc42b41db889ac74db6ff70de0a41c0711 Mon Sep 17 00:00:00 2001 From: CharlieC3 <2747302+CharlieC3@users.noreply.github.com> Date: Mon, 14 Oct 2024 17:10:52 -0400 Subject: [PATCH] [stacks-blockchain-api]: fix chain id env var in writer --- hirosystems/stacks-blockchain-api/Chart.lock | 6 +++--- hirosystems/stacks-blockchain-api/Chart.yaml | 2 +- .../templates/api-writer/statefulset.yaml | 4 +++- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/hirosystems/stacks-blockchain-api/Chart.lock b/hirosystems/stacks-blockchain-api/Chart.lock index 9709e29..ab0f422 100644 --- a/hirosystems/stacks-blockchain-api/Chart.lock +++ b/hirosystems/stacks-blockchain-api/Chart.lock @@ -7,6 +7,6 @@ dependencies: version: 12.12.10 - name: common repository: https://charts.bitnami.com/bitnami - version: 2.23.0 -digest: sha256:855e6c5e46f6c06f38ad6cbcbd0795dcb5823bbc661e9da04ae26cfba4fa054a -generated: "2024-09-17T06:21:57.839791-07:00" + version: 2.26.0 +digest: sha256:2e457f807e54e320d5902c2c6e852168d1c5f9f6a55f43d00c2c781becb5a35b +generated: "2024-10-14T17:09:34.313196-04:00" diff --git a/hirosystems/stacks-blockchain-api/Chart.yaml b/hirosystems/stacks-blockchain-api/Chart.yaml index 68a6473..bb13c53 100644 --- a/hirosystems/stacks-blockchain-api/Chart.yaml +++ b/hirosystems/stacks-blockchain-api/Chart.yaml @@ -41,4 +41,4 @@ sources: - https://github.com/hirosystems/stacks-blockchain-api - https://docs.hiro.so/api - https://docs.hiro.so/get-started/stacks-blockchain-api -version: 5.1.0 +version: 5.1.1 diff --git a/hirosystems/stacks-blockchain-api/templates/api-writer/statefulset.yaml b/hirosystems/stacks-blockchain-api/templates/api-writer/statefulset.yaml index f542b3f..882a74a 100644 --- a/hirosystems/stacks-blockchain-api/templates/api-writer/statefulset.yaml +++ b/hirosystems/stacks-blockchain-api/templates/api-writer/statefulset.yaml @@ -336,8 +336,10 @@ spec: - name: STACKS_CHAIN_ID {{- if eq .Values.blockchainNetwork "mainnet" }} value: "0x00000001" - {{- else }} + {{- else if eq .Values.blockchainNetwork "testnet" }} value: "0x80000000" + {{- else }} + value: {{ default "0x80000000" .Values.blockchainNetwork | quote }} {{- end }} - name: STACKS_CORE_EVENT_PORT value: {{ default "3700" .Values.apiWriter.containerPorts.socket | quote }}