Giter Site home page Giter Site logo

docs's Introduction

Node and Validator Setup Docs

This is Andromachain's documentation to set up a node and validator.

Prerequisites

sudo apt update && sudo apt upgrade -y
sudo apt install make build-essential git jq chrony -y
sudo apt install gcc -y

Increase open files limit

sudo su -c "echo 'fs.file-max = 65536' >> /etc/sysctl.conf"
sudo sysctl -p

Install Go

curl https://dl.google.com/go/go1.18.3.linux-amd64.tar.gz | sudo tar -C/usr/local -zxvf

Update environment variables

cat <<'EOF' >>$HOME/.profile
export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export GO111MODULE=on
export GOBIN=$HOME/go/bin
export PATH=$PATH:/usr/local/go/bin:$GOBIN
EOF
source $HOME/.profile

Download Ignite

curl https://get.ignite.com/cli! | bash

Or

https://docs.ignite.com/guide/install

Clone source repository

git clone <andromaverse repo link>
cd <andromaverse binary>
git checkout <andromaverse binary latest version>

Build the chain

ignite chain build

Initialize the chain

andromaversed init <MONIKER> --chain-id <chain id>

Set up persistent peers

cd $HOME/.andromaversed/config/
nano config.toml

Add peers

persistent_peers = <validator-generated persistent peer>

Copy genesis file

git clone <repo link>
cd testnets/<chain id>
cp genesis.json $HOME/. andromaversed/config

Starting the network

Now start the network with a terminal command to ensure it runs

andromaversed start

Create andromaversed.service

You should create a service to ensure the node can run in the background. First, exit from the terminal command "andromaversed start". Ctrl-C will do.

Create andromaversed.service file with the following. Make sure to replace USER and HOME placeholders

[Unit]
Description=Andromaversed Node
After=network-online.target

[Service]
User=<USER>
ExecStart=<HOME>/go/bin/andromaversed start
Restart=always
RestartSec=3
LimitNOFILE=4096

[Install]
WantedBy=multi-user.target

Move file to systemd folder and enable the service

sudo mv andromaversed.service /etc/systemd/system/andromaversed.service
sudo systemctl enable andromaversed.service && sudo systemctl start andromaversed.service

Check node info

curl -s localhost:26657/status | jq .result.sync_info.catching_up
#true output is syncing - false is synced
curl -s localhost:26657/status | jq .result.sync_info.latest_block_height
#this output is your last block synced
curl -s "http://:26657/status?" | jq .result.sync_info.latest_block_height
#this output the public node last block synced

Create or recover keys

# Create new key
andromaversed keys add <KEY_NAME> --keyring-backend os
# Recover key
andromaversed keys add <MONIKER> --keyring-backend os —-recover

Get test tokens

TBD

Create Validator

andromaversed tx staking create-validator \
 --amount=100000000uandr \
 --pubkey=$(andromaversed tendermint show-validator) \
 --moniker=<your-moniker> \
 —chain-id=<chain id> \
 --commission-rate="0.05" \
 --commission-max-rate="0.10" \
 --commission-max-change-rate="0.05" \
 --min-self-delegation="1" \
 --gas="700000" \
 --from=(keyofyourvalidator)

docs's People

Contributors

seekingtau avatar joemonem avatar polkachuintern avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.