Testnets
testnet11 is the only supported testnet. Older testnets may remain active, but Chia Network Inc. longer officially supports them.
Testnets can be used to test the chia software with coins that have no real world value.
If you want to run the Chia blockchain mainnet, use the mainnet installation instructions.
Join the official testnet
Prerequisites
- Minimum Chia version is 2.1.0 installed.
- All chia processes have been stopped with
chia stop all-d
.
Configure Chia for testnet
# Initialize chia
chia init
# Generate keys (if they have not already been generated)
chia keys generate
# Configure Chia for the currently-active testnet
chia configure --testnet true
Download the official testnet database (optional)
This step is optional, but it will speed up syncing with the testnet.
- Linux users:
wget https://databases.chia.net/file/chia-public-databases/blockchain_v2_testnet11.sqlite.gz
while in the directory (a v1 db is not available for testnet11). - Windows users: download it from https://downloads.chia.net/testnet11/ and move it to the db folder in the mainnet/ directory in the Chia root folder (i.e.
~/.chia/mainnet/db
is the database directory).
Make sure to unzip the database before continuing to the next step.
Prior to starting your node, it is recommended to delete peers.dat
, located in ~/.chia/mainnet/db
. If you don't delete this file you might see WARNING Invalid handshake with peer
in your log file. The reason for this is that peers.dat will contain mainnet peers, which are not running on the testnet. If you do see these warnings, there's no requirement to take further action -- they'll eventually stop appearing as your invalid peers are replaced with valid ones.