Deploy a Testnet
This document describes 2 ways to setup a network of panacead nodes.

Using multiple machines

Deploy the first node

1
# Initialize the genesis.json file that will help you to bootstrap the network
2
panacead init node1 --chain-id=testing
3
4
# Create a key to hold your validator account
5
panacead keys add validator
6
7
# Add that key into the genesis.app_state.accounts array in the genesis file
8
# NOTE: this command lets you set the number of coins. Make sure this account has some coins
9
# with the genesis.app_state.staking.params.bond_denom denom.
10
panacead add-genesis-account $(panacead keys show validator -a) 100000000000000umed
11
12
# Generate the transaction that creates your validator
13
panacead gentx validator 1000000000000umed --commission-rate 0.1 --commission-max-rate 0.2 --commission-max-change-rate 0.01 --min-self-delegation 1000000 --chain-id testing
14
15
# Add the generated bonding transaction to the genesis file
16
panacead collect-gentxs
17
18
# Now its safe to start `panacead`
19
panacead start
Copied!
This setup puts all the data for panacead in ~/.panacea. You can examine the genesis file that you created at ~/.panacea/config/genesis.json.

Deploy the second node

Init the second node using another moniker: node2.
1
panacead init node2 --chain-id=testing
Copied!
Overwrite ~/.panacea/config/genesis.json with the first node's genesis.json.
Get a node ID of the first node.
1
panacead tendermint show-node-id
2
> 46046c89ec576daa0662613ee0142ab61dd2421e
Copied!
Set a persistent_peers in the ~/.panacea/config/config.toml of the second node.
1
# Comma separated list of nodes to keep persistent connections to
2
persistent_peers = "<first_node_id>@<first_node_ip>:26656"
Copied!
Start the second node.
1
panacead start
Copied!
Last modified 2mo ago