β˜‘οΈ0G Storage Node

Recommended Hardware: 4 Cores, 16GB RAM, 1TB of storage (NVME)

System updates, installation of required dependencies

sudo apt-get update
sudo apt-get install clang cmake build-essential
sudo apt install cargo

Install go

cd $HOME && \
ver="1.22.0" && \
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 rust

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
rustc --version

When prompted choice of 1,2 and 3 just hit enter to continue

Build zgs_node binary from source with rust

Set vars

PLEASE INPUT YOUR OWN JSON-RPC ENDPOINT (VALIDATOR_NODE_IP:8545) OR YOU CAN OUR ENDPOINTS PLEASE CHECK README

ALSO CHECK THE JSON-RPC SYNC, MAKE SURE IT'S IN THE LATEST BLOCK

Set parameters in config.toml

Create zgs service (storage node) for your node to run in the background

Start Storage node

Check version

$HOME/0g-storage-node/target/release/zgs_node --version

Show logs by date

  • full logs command

  • tx_seq-only logs command

  • minimized-logs command

  • check your storage node through rpc

Test Stoarge Node with storage CLI

Build Storage CLI with source code

Generate Test file for uploading via Storage CLI

Upload test file with storage CLI

If you see this result, the test was successful

Last updated

Was this helpful?