Skip to content

Commit

Permalink
mkchain use auth
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasochem committed Oct 24, 2023
1 parent 9464bab commit e990d61
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions mkchain/tqchain/mkchain.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ def node_config(name, n, is_baker):
"shell": {"history_mode": "rolling"},
"metrics_addr": [":9932"],
},
"authorized_keys": [ "authorized-key-0" ]
}
if is_baker:
ret["bake_using_accounts"] = [f"{name}-{n}"]
Expand Down Expand Up @@ -243,7 +244,7 @@ def main():
baking_accounts = {
f"{ARCHIVE_BAKER_NODE_NAME}-{n}": {} for n in range(args.number_of_bakers)
}
for account in baking_accounts:
for account in [ *baking_accounts, * ["authorized-key-0" ] ]:
print(f"Generating keys for account {account}")
keys = gen_key(args.octez_docker_image)
for key_type in keys:
Expand Down Expand Up @@ -279,7 +280,8 @@ def main():
"tezos-signer-0": {
"accounts": [
f"{ARCHIVE_BAKER_NODE_NAME}-{n}" for n in range(args.number_of_bakers)
]
],
"authorized_keys": [ "authorized-key-0" ]
}
}

Expand Down

0 comments on commit e990d61

Please sign in to comment.