Private networks might be useful if you want to use a completely blank slate for testing. This is the default for sandbox ("sandnet"), but you may want to replicate this on a node.
First, create a network template. There is a Devmode network template in go-algorand that we can use. Let's put that file in directory ~/net1
and cd
into it.
Then, create the network:
./goal network create -r ~/net1 -n private -t DevModeNetwork.json
This will create the network directory in ~/net1
. In the Node
directory inside net1/
, there should be a config.json
.
You can customize the configurations here.
Reference: https://developer.algorand.org/tutorials/create-private-network/
Start up the network:
goal network start -r ~/net1
# Check network status
goal network status -r ~/net1