From 8094c2ba738f4be761ea077ce448467e11fe03a8 Mon Sep 17 00:00:00 2001 From: Nicolas Ochem Date: Tue, 12 Dec 2023 14:46:46 -0800 Subject: [PATCH] fix typo --- charts/tezos/templates/octez-dal-node.yaml | 10 +++++----- mkchain/tqchain/mkchain.py | 2 +- utils/config-generator.py | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/charts/tezos/templates/octez-dal-node.yaml b/charts/tezos/templates/octez-dal-node.yaml index 0feded013..3326e909d 100644 --- a/charts/tezos/templates/octez-dal-node.yaml +++ b/charts/tezos/templates/octez-dal-node.yaml @@ -45,7 +45,11 @@ spec: - name: MY_POD_NAME value: {{ $k }} - name: MY_POD_TYPE - value: baker + value: dal +{{- if $v.attest_using_accounts | default false }} + - name: ATTEST_USING_ACCOUNTS + value: {{ toJson $v.attest_using_accounts | quote }} +{{- end }} volumeMounts: - mountPath: /var/tezos name: var-volume @@ -77,10 +81,6 @@ spec: - name: BOOTSTRAP_PROFILE value: "true" {{- end }} -{{- if $v.attesterProfiles | default false }} - - name: ATTESTER_PROFILES - value: "{{ $v.attesterProfiles }}" -{{- end }} {{- if $v.peer | default false }} - name: PEER value: "{{ $v.peer }}" diff --git a/mkchain/tqchain/mkchain.py b/mkchain/tqchain/mkchain.py index afe483485..fa4b5e33a 100644 --- a/mkchain/tqchain/mkchain.py +++ b/mkchain/tqchain/mkchain.py @@ -243,7 +243,7 @@ def main(): dalNodes = { f"{DAL_NODE_NAME}-{n}": { - "attesterProfiles": "tz1fqR2X7iQSGD6ntLLDDrpAWMCcp74D39ut", + "attester_using_accounts": [ "baker-0"], "node_rpc_url": f"http://{L1_NODE_NAME}-0.{L1_NODE_NAME}:8732", } for n in range(args.dal_nodes) diff --git a/utils/config-generator.py b/utils/config-generator.py index d8a2fb21f..7614b8704 100755 --- a/utils/config-generator.py +++ b/utils/config-generator.py @@ -172,9 +172,9 @@ def main(): # Create dal_config.json if MY_POD_TYPE == "dal": - attest_for_accounts = json.loads(os.getenv("ATTEST_FOR_ACCOUNTS", "[]")) + attest_using_accounts = json.loads(os.getenv("ATTEST_USING_ACCOUNTS", "[]")) attester_list = "" - for account in attest_for_accounts: + for account in attest_using_accounts: attester_list += f"{all_accounts[account]['public_key_hash']} " with open("/var/tezos/dal_attester_config", "w") as attester_file: