This article was first published on Sia Blog - Medium
Sia’s Decentralized Storage Mini Testnet and Test Lab
Sia is a decentralized data storage platform and marketplace backed by its own blockchain and cryptocurrency. It is a base layer upon which other platforms and end-user applications can be built with Skynet being the most prominent.
The purpose of Sia Antfarm is for testing the Sia network. It can be used to test predefined scenarios like version upgrades or to test an application that is being built on top of Sia.
The Sia Antfarm creates a local Sia testnet by spinning up Sia nodes and connecting them. These Sia nodes are referred to as ants and the quantity and makeup is configurable based on the user's needs.
Each ant can perform one or more jobs such as being a renter, host, or miner on the Antfarm network. These jobs can run perpetually in the background. An example would be an autoRenter job, where the ant connects with other ants (hosts, miners) on the Antfarm, sets its own renter storage allowance, forms storage contracts with hosts, and starts periodically uploading, downloading, and deleting files to and from the local Sia testnet.
While the Antfarm is running, users can interact with each of the ants through the Sia API (e.g.: curl -A "Sia-Agent" "127.0.0.1:10980/renter") or siac commands (e.g. siac --addr 127.0.0.1:10980 renter).
The Sia Antfarm can be configured to meet the needs of different test cases by using the config.jsonfile. This config.jsonfile allows for managing the type of ants within the Antfarm as well as specific settings for each ant. Each setting option is described in the README file and a sample configuration we use can be also found ...
To keep reading, please go to the original article at:
Sia Blog - Medium