Skip to content

Commit

Permalink
Update deploy-testnet.md (cosmos#810) (cosmos#814)
Browse files Browse the repository at this point in the history
Updated some of the `gaiad` command during setup. I also changed some of the names i.e. `my-node`, `my-chain`, `my-account` to better distinguish between the various components involved in setup

Co-authored-by: Callum Waters <cmwaters19@gmail.com>
  • Loading branch information
shahankhatch and cmwaters committed Apr 12, 2021
1 parent ce4fdf9 commit b962907
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/gaia-tutorials/deploy-testnet.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,18 +41,18 @@ This guide helps you create a single validator node that runs a network locally
cd $HOME

# Initialize the genesis.json file that will help you to bootstrap the network
gaiad init --chain-id=testing testing
gaiad init my-node --chain-id my-chain

# Create a key to hold your validator account
gaiad keys add validator
gaiad keys add my-account

# Add that key into the genesis.app_state.accounts array in the genesis file
# NOTE: this command lets you set the number of coins. Make sure this account has some coins
# with the genesis.app_state.staking.params.bond_denom denom, the default is staking
gaiad add-genesis-account $(gaiad keys show validator -a) 1000000000stake,1000000000validatortoken
gaiad add-genesis-account $(gaiad keys show my-account -a) 1000000000stake,1000000000validatortoken

# Generate the transaction that creates your validator
gaiad gentx --name validator
gaiad gentx my-account 1000000000stake --chain-id my-chain

# Add the generated bonding transaction to the genesis file
gaiad collect-gentxs
Expand Down

0 comments on commit b962907

Please sign in to comment.