Skip to content

Conversation

@lmc-mint
Copy link

In order to use the playbook for mainnet and testnet , we need to :

  • Add new variables to manage the chain installation in testnet or mainnet
  • Add new tasks to download the chain information from the .data files in the Commercio.network chains repository
  • Update the README

Copy link
Contributor

@marcotradenet marcotradenet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please. Check review.

README.md Outdated
2. Proceed to run the `main` playbook:
```bash
ansible-playbook -i hosts.ini main/commercio.yml
ansible-playbook -i .hosts.ini main/commercio.yml
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is and error: in the .gitignore file hosts.ini is correctly excluded from the GitHub repository. .hosts.ini is a template

slack_hook: ""
trust_rpc1: "rpc-mainnet.commercio.network:80"
trust_rpc2: "rpc2-mainnet.commercio.network:80"
trust_rpc2: "rpc2-mainnet.commercio.network:80"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The rpcs data should be customizable selecting the chain. It should be explain in the README or better download from chains repository. You can add some variable if you want.

# For Cosmos SDK-based chains, trust_period should usually be about 2/3 of the unbonding time (~2
# weeks) during which they can be financially punished (slashed) for misbehavior.
rpc_servers = "157.230.110.18:26657,46.101.146.48:26657"
rpc_servers = "{{ trust_rpc1 }},{{ trust_rpc2 }}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can create a unique variable before use it: if one day we add a rpc server it could be useful

@@ -1,8 +1,25 @@
- name: Get data from URL
uri:
url: "https://raw.githubusercontent.com/lmc-mint/chains/master/{{ chain_id }}/.data.json"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a point to your fork. It should be the official repository. You can handle the error or put the path of the data in a variable.

slack_hook: ""
trust_rpc1: "rpc-mainnet.commercio.network:80"
trust_rpc2: "rpc2-mainnet.commercio.network:80"
rpc_servers: "{{ trust_rpc1 }},{{ trust_rpc2 }}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this can't work: trust_rpc1 and trust_rpc2 get the value in a subsequent task

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants