- Requirements: Linux: tested on Ubuntu and Debian.
description: Setup a non-validator node. To become a validator, node must get votes from at least 3/4 of current validators.
sudo apt update
sudo apt install screen
sudo apt install default-jre default-jdk
git clone https://github.com/LotanChain/blockchain-core.git
sudo nano ~/.bashrc
export PATH=/home/YOUR_USERNAME/blockchain-core/bin:$PATH
source ~/.bashrc
mkdir -p ltn/api-node/data cd ltn
sudo nano genesis.json ( Save using Ctrl + O , then exit with Ctrl + x )
Static-nodes: https://github.com/LotanChain/blockchain-core/blob/master/documentation/static-nodes.json
sudo nano static-nodes.json ( Save using Ctrl + O , then exit with Ctrl + x )
cd api-node sudo nano config.toml
screen , then hit Enter key.
ltnd --config-file=config.toml
Press Ctrl + A , then press C . Now you can either close the terminal window, or work on other processes.
It should start synchronization in few moments, or minutes. Depending on your machine.
To run more than one node on the same machine, you must set different port numbers in config.toml per each node.
rpc-http-port=8545 rpc-ws-port=8546 graphql-http-port=8547 metrics-port=9545 p2p-port=30303