Setup your node
Install pre requis
sudo apt-get update && sudo apt upgrade -y
sudo apt-get install make build-essential gcc git jq chrony -y
Install go
sudo rm -rf /usr/local/go
wget https://golang.org/dl/go1.19.1.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.19.1.linux-amd64.tar.gz
rm go1.19.1.linux-amd64.tar.gz
Setting up go
export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export GO111MODULE=on
export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin
Install Node
Install the Kyve-node
binary by running the following commands
#from $HOME dir
git clone https://github.com/KYVENetwork/chain
cd chain
git fetch
git checkout v1.0.0
make build
make install
To confirm that the node is well installed
kyved version
#v1.0.0
Setting up the Node
Initialization node
Please choose your MONIKER name, it will represent your node
kyved init MONIKER_NAME --chain-id kyve-1
This will generate severals files in ~/.kyve/config/
- node_key.json
- genesis.json
- priv_validator_key.json
Download and replace the genesis file
rm ~/.kyve/config/genesis.json
wget -O genesis.json https://raw.githubusercontent.com/KYVENetwork/networks/main/kyve-1/genesis.json --inet4-only
mv genesis.json ~/.kyve/config
Node connexion
In order to connect the node you can either use seeds
, lives peers
or address book
.
- Seeds
- Peers
- Addrbook
Set Seeds
Set Peers
PEERS=c782ab00baf1c86261db0570307a9ecd9c5b197a@5.9.63.216:28656,307f4024107ef114dba355fe97dab44b8b45cefc@38.242.253.58:29656,8571081ef11346da706655b5f39945ba4604e0cc@54.180.198.153:26656,3d1747891f4e6c41f1a6c8acf04330cd4daa4763@135.181.223.115:2560,53cf43a498af05bef6a907a455a2bf19c92631ec@65.108.124.219:42656,e7d961400180d810f2420a6271b67bf44b037cc8@3.144.28.125:31305,9d9eb29d2889b30f6fa8deb404795a62091369b8@3.144.87.60:31308,cfb5d3dc65e8e1d17285964655d2b47a44d35721@144.76.97.251:42656,146d27829fd240e0e4672700514e9835cb6fdd98@34.212.201.1:26656,4a349ecc378843ce275c45f543630b4b18788f70@195.3.222.240:26756
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.kyve/config/config.toml
Set Addrbook
Setup service file
[Unit]
Description="kyve node"
[Service]
User=USER
ExecStart=$(which kyved) start
Restart=always
RestartSec=3
LimitNOFILE=4096
[Install]
WantedBy=multi-user.target
If you'd like to synchronise a node from a snapshot check the snapshot part
Start service file
systemctl daemon-reload
systemctl start kyve.service | journalctl -u kyve.service -f