Skip to content

Commit

Permalink
fix: testnet config template
Browse files Browse the repository at this point in the history
  • Loading branch information
angrybayblade committed Jul 28, 2023
1 parent fc8ad3a commit d6aa82b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
2 changes: 1 addition & 1 deletion autonomy/deploy/generators/docker_compose/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ def generate_config_tendermint(self) -> "DockerComposeGenerator":
if not self.use_tm_testnet_setup:
return self

hosts = " \\\n".join(
hosts = " ".join(
[
"--hostname=" + self.service_builder.get_tm_container_name(index=k)
for k in range(self.service_builder.service.number_of_agents)
Expand Down
7 changes: 1 addition & 6 deletions autonomy/deploy/generators/docker_compose/templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,7 @@
"""Deployment Templates."""


TENDERMINT_CONFIG_TEMPLATE: str = """/usr/bin/tendermint testnet \
--config /etc/tendermint/config-template.toml \
--v {validators} \
--o . \
{hosts}
"""
TENDERMINT_CONFIG_TEMPLATE: str = """/usr/bin/tendermint testnet --config /etc/tendermint/config-template.toml --v {validators} --o . {hosts}"""

DOCKER_COMPOSE_TEMPLATE: str = """version: "2.4"
services:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,6 @@ def test_docker_compose_build_with_testnet(
str(self.t / DEFAULT_BUILD_FOLDER),
"--local",
"--local-tm-setup",
"--n",
"1",
)
)

Expand Down

0 comments on commit d6aa82b

Please sign in to comment.