light nodes
This package is designed for running light nodes on the Arabica devnet and Mocha testnet. It is currently in development, but can be used with the following versions:
It was built on macOS for macOS and Linux.
Installation
You can install the package globally using the following command:
Yarn
yarn global add light-nodes
Start a node on Mainnet with yarn
This installs the package, installs a Mainnet Beta light node, and runs it.
yarn global add light-nodes && mainnet && start
Start a node on Mocha with yarn
This installs the package, installs a Mocha testnet light node, and runs it.
yarn global add light-nodes && mocha && start-m
Start a node on Arabica with yarn
This installs the package, installs a Arabica devnet light node, and runs it.
yarn global add light-nodes && arabica && start-a
Uninstall with yarn
To uninstall, run:
yarn global remove light-nodes
NPM
npm i -g light-nodes
Start a node on Mainnet with npm
This installs the package, installs an Mainnet light node, and runs it.
npm i -g light-nodes && mainnet && start
Start a light node on Arabica with npm
This installs the package, installs a Arabica light node, and runs it.
npm i -g add light-nodes && arabica && start-a
Start a light node on Mocha with npm
This installs the package, installs a Mocha light node, and runs it.
npm i -g add light-nodes && mocha && start-m
Uninstall with NPM
To uninstall, run:
npm uninstall -g light-nodes
Usage
After installing the package, you can use the light nodes on Mainnet Beta, Arabica devnet, and Mocha testnet. Here's a basic guide:
Help
To show the help menu, use:
light-nodes-help
Mainnet
To initialize a light node on the Mainnet Beta, use the mainnet
command:
mainnet
Then start the node:
start
Mocha
To initialize a light node on the Mocha devnet, use the mocha
command:
mocha
Then start the node:
start-m
Arabica
To initialize a light node on the Arabica devnet, use the arabica
command:
arabica
Then start the node:
start-a
Cleanup
To remove all files associated with light-nodes, use the clean-light-nodes
command:
clean-light-nodes
This removes:
CELESTIA_BINARY="$HOME/go/bin/celestia"
CELESTIA_NODE="$HOME/celestia-node"
DATA_STORE_ARABICA="$HOME/.celestia-light-arabica-11"
DATA_STORE_MOCHA="$HOME/.celestia-light-mocha-4"
DATA_STORE_MAINNET="$HOME/.celestia-light"
To uninstall Golang, run this in your terminal:
rm -rf /usr/local/go
Troubleshooting
Linux
To upgrade your OS:
sudo apt update && sudo apt upgrade -y
If you do not have them already, download essential packages for downloading files, compiling, and building the node:
sudo apt install curl tar wget clang pkg-config libssl-dev jq build-essential git make ncdu -y