Skip to content

Instantly share code, notes, and snippets.

@foggywow
Last active February 4, 2022 14:58
Show Gist options
  • Save foggywow/cf8dc95e51d1d2a62ff098270e9819c2 to your computer and use it in GitHub Desktop.
Save foggywow/cf8dc95e51d1d2a62ff098270e9819c2 to your computer and use it in GitHub Desktop.
Cosmic-Horizon. Join Testnet [Ubuntu 20.04]

Tested on Ubuntu 20.04

Hardware requirements

  • CPU: 4 Cores
  • RAM: 8GB
  • SSD: 200GB

Install

prerequires:

# install go
wget https://go.dev/dl/go1.17.5.linux-amd64.tar.gz
rm -rf /usr/local/go && tar -C /usr/local -xzf go1.17.5.linux-amd64.tar.gz

echo 'export GOPATH=/usr/local/go' >> $HOME/.bashrc
echo 'export GOBIN=$GOPATH/bin' >> $HOME/.bashrc
echo 'export PATH=$PATH:$GOBIN' >> $HOME/.bashrc
source $HOME/.bashrc

# install starport
curl https://get.starport.network/starport! | bash

# Install CoHo
git clone https://github.com/cosmic-horizon/coho.git
cd ~/coho
starport chain build
cd ~

Run node:

# add some useful variables
# replace <your-moniker> with your value! 
echo 'export ACCOUNT=your-moniker>' >> $HOME/.bashrc
echo 'export CHAIN=darkmatter-1' >> $HOME/.bashrc
source $HOME/.bashrc

# init your node 
cohod init $ACCOUT --chain-id $CHAIN

# working with keys
cohod keys add $ACCOUNT

# SAVE OUTPUT FROM THE COMMAND ABOVE !! #

# add some useful variables
echo 'export ADDRESS=<your-wallet-address>' >> $HOME/.bashrc
echo 'export VALIDATOR=<your-validator-address>' >> $HOME/.bashrc
source $HOME/.bashrc

# ALSO DO NOT FORGET TO SAVE .coho/config/priv_validator_key.json
# SAVE THE OUTPUT FROM COMMAND BELOW !!:
cat .coho/config/priv_validator_key.json

COMMING SOON

after testnet release here will be the instruction how to:

- create a service file

- run a validator

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