Installation Node

  • Network Type: Mainnet
  • Chain-id: planq_7070-2
  • Current Node version: v1.0.7
  • Hardware requirements

    The following requirements are recommended for running planq:

    • 4 or more physical CPU cores
    • At least 500GB of SSD disk storage
    • At least 32GB of memory (RAM)
    • At least 100mbps network bandwidth

    Install dependencies Required

    sudo apt update && sudo apt upgrade -y && sudo apt install curl tar wget clang pkg-config libssl-dev jq build-essential bsdmainutils git make ncdu gcc git jq chrony liblz4-tool -y

    Install go

    We are gonna use GO Version 1.19.5 If you already have GO installed you can skip this

    ver="1.19.5"
    cd $HOME
    wget "https://golang.org/dl/go$ver.linux-amd64.tar.gz"
    sudo rm -rf /usr/local/go
    sudo tar -C /usr/local -xzf "go$ver.linux-amd64.tar.gz"
    rm "go$ver.linux-amd64.tar.gz"
    echo "export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin" >> ~/.bash_profile
    source ~/.bash_profile
    go version

    Install binary

    cd $HOME
    rm -rf planq/
    git clone https://github.com/planq-network/planq.git
    cd planq/
    git fetch
    git checkout v1.0.7
    make build

    Initialize Node

    Please change <MONIKER> To your own Moniker.

    planqd config chain-id planq_7070-2
    planqd init $MONIKER --chain-id planq_7070-2
    planqd config keyring-backend file

    Download Genesis file and addrbook

    • Genesis
    wget https://raw.githubusercontent.com/planq-network/networks/main/mainnet/genesis.json
    mv genesis.json ~/.planqd/config/
    • Addrbook
    wget -O $HOME/.planqd/config/addrbook.json "https://raw.githubusercontent.com/vinjan23/Mainnet/main/Planq/addrbook.json"

    Configure Seeds and Peers

    SEEDS=`curl -sL https://raw.githubusercontent.com/planq-network/networks/main/mainnet/seeds.txt | awk '{print $1}' | paste -s -d, -`
    sed -i.bak -e "s/^seeds =.*/seeds = \"$SEEDS\"/" ~/.planqd/config/config.toml
    sed -i 's/max_num_inbound_peers =.*/max_num_inbound_peers = 100/g' $HOME/.planqd/config/config.toml
    sed -i 's/max_num_outbound_peers =.*/max_num_outbound_peers = 100/g' $HOME/.planqd/config/config.toml
    sed -i.bak -e "s/^minimum-gas-prices *=.*/minimum-gas-prices = \"0aplanq\"/;" ~/.planqd/config/app.toml
    sed -i -e "s/prometheus = false/prometheus = true/" $HOME/.planqd/config/config.toml

    config pruning

    pruning="custom"
    pruning_keep_recent="100"
    pruning_keep_every="0"
    pruning_interval="10"
    sed -i -e "s/^pruning *=.*/pruning = \"$pruning\"/" $HOME/.planqd/config/app.toml
    sed -i -e "s/^pruning-keep-recent *=.*/pruning-keep-recent = \"$pruning_keep_recent\"/" $HOME/.planqd/config/app.toml
    sed -i -e "s/^pruning-keep-every *=.*/pruning-keep-every = \"$pruning_keep_every\"/" $HOME/.planqd/config/app.toml
    sed -i -e "s/^pruning-interval *=.*/pruning-interval = \"$pruning_interval\"/" $HOME/.planqd/config/app.toml

    create service file and start node

    Create service file Create a planq.service file in the /etc/systemd/system folder with the following code. You can change USER with your Linux user name. You need sudo previlege to do this step.

    sudo tee /etc/systemd/system/planqd.service > /dev/null << EOF
    [Unit]
    Description=planq-mainnet node service
    After=network-online.target
    [Service]
    User=$USER
    ExecStart=$(which planqd) start
    Restart=always
    RestartSec=3
    LimitNOFILE=65535
    [Install]
    WantedBy=multi-user.target
    EOF
    • Start Node
    sudo systemctl enable planqd && sudo systemctl daemon-reload
    sudo systemctl restart planqd && sudo journalctl -u planqd -f -o cat

    Create Validator

    Heads up to the Cheat Sheets to create validator