light-nodes
v0.12.4-rc2
Published
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:
Readme
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-nodesStart 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 && startStart 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-mStart 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-aUninstall with yarn
To uninstall, run:
yarn global remove light-nodesNPM
npm i -g light-nodesStart a node on Mainnet with npm
This installs the package, installs an Mainnet light node, and runs it.
npm i -g light-nodes && mainnet && startStart 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-aStart 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-mUninstall with NPM
To uninstall, run:
npm uninstall -g light-nodesUsage
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-helpMainnet
To initialize a light node on the Mainnet Beta, use the mainnet command:
mainnetThen start the node:
startMocha
To initialize a light node on the Mocha devnet, use the mocha command:
mochaThen start the node:
start-mArabica
To initialize a light node on the Arabica devnet, use the arabica command:
arabicaThen start the node:
start-aCleanup
To remove all files associated with light-nodes, use the clean-light-nodes command:
clean-light-nodesThis 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/goTroubleshooting
Linux
To upgrade your OS:
sudo apt update && sudo apt upgrade -yIf 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