Storage implements the storage layer for Rainblock.
To boot up Rainblock's storage node, install storage and follow the instructions below:
git clone https://github.com/RainBlock/storage
cd storage
npm install
npm run test
Usage instructions, run the server with two args shard and port.
node -r ts-node/register src/server.ts shard port
Shard can be either be -1 or any number between 0 and 15 including 0, 15.
- If shard is -1, the storage node is a fullNode
- If shard is any number between 0 and 15; storage is sharded and stores {shard}.
Port is the port on the storage server has to run.
For example, to run a fullNode on port 50051
node -r ts-node/register src/server.ts -1 50051