Skip to content

LotanChain/blockchain-core

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Add non-validator node (mainnet)

  1. 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.

LotanChain Node Setup

Run the following combined command. You can divide it in to commands:

sudo apt update

Install screen:

sudo apt install screen

Setup Java:

sudo apt install default-jre default-jdk

Download latest LotanChain client Hyperledger Besu:

git clone https://github.com/LotanChain/blockchain-core.git

Add environment so you can run LotanChain client from anywhere:

sudo nano ~/.bashrc

Add the following line to the end of the file. Make sure to put your username:

export PATH=/home/YOUR_USERNAME/blockchain-core/bin:$PATH

Relaod bashrc file:

source ~/.bashrc

Create a directory structure like this:

mkdir -p ltn/api-node/data cd ltn

Create the genesis file, and paste the contents from the genesis file into it:

sudo nano genesis.json ( Save using Ctrl + O , then exit with Ctrl + x )

create static-node.json file and paste the contents of static-nodes file into it:

sudo nano static-nodes.json ( Save using Ctrl + O , then exit with Ctrl + x )

Create a file called config.toml in node01 folder. Paste contents of config.toml into it:

cd api-node sudo nano config.toml

Run screen, to keep node running if you close the terminal:

screen , then hit Enter key.

Run LotanChain client from node01 folder:

ltnd --config-file=config.toml

When the node runs, exit the current screen so it's safe if you close the terminal:

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.

Default ports used:

rpc-http-port=8545 rpc-ws-port=8546 graphql-http-port=8547 metrics-port=9545 p2p-port=30303

To use WEB3 API, make sure WEB3 is enabled. This is the default setting in config.toml

About

No description, website, or topics provided.

Resources

License

Apache-2.0, Unknown licenses found

Licenses found

Apache-2.0
LICENSE
Unknown
license-dependency.html

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published