Follow all steps from common.md.
[deployment/ansible/inventory/group_vars/all.yml
]
type_name: "Priv-SN"
...
[deployment/ansible/inventory/hosts.yml
]
all:
...
children:
...
private_sentries:
hosts:
<private sentry node IP address or hostname>
...
[deployment/ansible/roles/configure/vars/private-sentry.yml
]
config:
p2p:
persistent_peers: "<node1-ID>@<node1-IP>:26656,..."
...
persistent_peers
value:
Validator
node with private IP + other orgs' validator/sentry nodes with public IPs.- For
testnet-2.0
ormain-net
get the latestpersistent_peers
(other orgs' validator/sentry nodes with public IPs) from the CSA slack channel. - Use the following command to get
node-ID
of a node:./dcld tendermint show-node-id
.
4. (Optional) If you are joining a long-running network, enable statesync
or use one of the options in running-node-in-existing-network.md
[deployment/ansible/roles/configure/vars/public-sentry.yml
]
config:
...
statesync:
enable: true
rpc_servers: "http(s):<node1-IP>:26657, ..."
trust_height: <trust-height>
trust_hash: "<trust-hash>"
...
Example for Testnet 2.0 (clickable)
config:
statesync:
enable: true
rpc_servers: "https://on.test-net.dcl.csa-iot.org:26657,https://on.test-net.dcl.csa-iot.org:26657"
Example for Mainnet (clickable)
config:
statesync:
enable: true
rpc_servers: "https://on.dcl.csa-iot.org:26657,https://on.dcl.csa-iot.org:26657"
NOTE: You should provide at least 2 addresses for
rpc_servers
. It can be 2 identical addresses
You can use the following command to obtain <trust-height>
and <trust-hash>
of your network
curl -s http(s)://<host>:<port>/commit | jq "{height: .result.signed_header.header.height, hash: .result.signed_header.commit.block_id.hash}"
Example for Testnet 2.0 (clickable)
curl -s https://on.test-net.dcl.csa-iot.org:26657/commit | jq "{height: .result.signed_header.header.height, hash: .result.signed_header.commit.block_id.hash}"
Example for Mainnet (clickable)
curl -s https://on.dcl.csa-iot.org:26657/commit | jq "{height: .result.signed_header.header.height, hash: .result.signed_header.commit.block_id.hash}"
<host>
- RPC endpoint host of the network being joined<port>
- RPC endpoint port of the network being joined
NOTE: State sync is not attempted if the node has any local state (LastBlockHeight > 0)
ansible-playbook -i ./deployment/ansible/inventory -u <target-host-ssh-user> ./deployment/ansible/deploy.yml
<target-host-ssh-username>
- target host ssh user- Ansible provisioning can take several minutes depending on number of nodes being provisioned
sudo su -s /bin/bash cosmovisor
dcld status