Skip to content

Commit

Permalink
switch to coma separated
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasochem committed Dec 12, 2023
1 parent 3ad838f commit b2b1d0c
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions utils/config-generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,13 +173,14 @@ def main():
# Create dal_config.json
if MY_POD_TYPE == "dal":
attest_using_accounts = json.loads(os.getenv("ATTEST_USING_ACCOUNTS", "[]"))
attester_list = ""
for account in attest_using_accounts:
attester_list += f"{all_accounts[account]['pkh']} "

with open("/var/tezos/dal_attester_config", "w") as attester_file:
print(attester_list, file=attester_file)
print("Generated dal attester account list for this node: %s" % attester_list)
if attest_using_accounts:
attester_list = ""
for account in attest_using_accounts:
attester_list += f"{all_accounts[account]['pkh']},"

with open("/var/tezos/dal_attester_config", "w") as attester_file:
print(attester_list, file=attester_file)
print("Generated dal attester account list for this node: %s" % attester_list)


# If NETWORK_CONFIG["genesis"]["block"] hasn't been specified, we generate a
Expand Down

0 comments on commit b2b1d0c

Please sign in to comment.