Skip to content

Shardus Network

This tool helps you to manage a local Shardus test network.

Usage

The shardus-network tool uses the /instances directory.

Examples

Create a local test network with default parameters:

shardus create-net 10 --no-start

Start the test network:

shardus start-net 10
⚠️

If any of the nodes error out, ensure that the processes of any previous network aren't still running.

Add 5 more nodes to the network and start them:

shardus create-net 5

Stop the test network:

shardus stop-net

Clean residual log and database files from the last run:

shardus clean-net
💡

Make sure that you delete the instances directory before starting a new network

rm -rf instances

Set the config.json file for all the instances in the /instances folder:

shardus config-net

Description

The shardus-network tools are used to launch and scale local test networks that run your Shardus app code.