From e7c1f51112bb62d764f0729eb286b9a7ee2ec69c Mon Sep 17 00:00:00 2001 From: David Boreham Date: Tue, 22 Aug 2023 21:51:37 -0600 Subject: [PATCH] Fix currency --- app/data/stacks/mainnet-laconic/deploy/commands.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/app/data/stacks/mainnet-laconic/deploy/commands.py b/app/data/stacks/mainnet-laconic/deploy/commands.py index 71c2d2af..1aba751a 100644 --- a/app/data/stacks/mainnet-laconic/deploy/commands.py +++ b/app/data/stacks/mainnet-laconic/deploy/commands.py @@ -98,6 +98,8 @@ def setup(command_context: DeployCommandContext, parameters: LaconicStackSetupCo options = command_context.cluster_context.options + currency = "stake" # Does this need to be a parameter? + if options.debug: print(f"parameters: {parameters}") @@ -163,14 +165,14 @@ def setup(command_context: DeployCommandContext, parameters: LaconicStackSetupCo output2, status2 = run_container_command( command_context, "laconicd", - f"laconicd add-genesis-account {parameters.key_name} 12900000000000000000000achk\ + f"laconicd add-genesis-account {parameters.key_name} 12900000000000000000000{currency}\ --home {laconicd_home_path_in_container} --keyring-backend test", mounts) print(f"Command output: {output2}") output3, status3 = run_container_command( command_context, "laconicd", - f"laconicd gentx {parameters.key_name} 90000000000achk --home {laconicd_home_path_in_container}\ + f"laconicd gentx {parameters.key_name} 90000000000{currency} --home {laconicd_home_path_in_container}\ --chain-id {chain_id} --keyring-backend test", mounts) print(f"Command output: {output3}") @@ -203,7 +205,7 @@ def setup(command_context: DeployCommandContext, parameters: LaconicStackSetupCo # Add those keys to our genesis, with balances we determine here (why?) for other_node_key in other_node_keys: outputk, statusk = run_container_command( - command_context, "laconicd", f"laconicd add-genesis-account {other_node_key} 12900000000000000000000achk\ + command_context, "laconicd", f"laconicd add-genesis-account {other_node_key} 12900000000000000000000{currency}\ --home {laconicd_home_path_in_container} --keyring-backend test", mounts) print(f"Command output: {outputk}") # Copy the gentx json files into our network dir