network:chianetwork:testnet
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
network:chianetwork:testnet [2021/09/14 12:54] – vleesbanaan | network:chianetwork:testnet [2021/09/14 19:22] (current) – vleesbanaan | ||
---|---|---|---|
Line 1: | Line 1: | ||
=====How to use Testnet on Windows? | =====How to use Testnet on Windows? | ||
+ | Below you will find the instructions for joining testnet7 using a Windows machine. | ||
+ | This guide is for farmers that want to run the testnet on the same machine as their mainnet. | ||
+ | If you want to do it on a seperate device, please see https:// | ||
====Step 1 - Create a Windows Subsystem for Linux (WSL)==== | ====Step 1 - Create a Windows Subsystem for Linux (WSL)==== | ||
Line 26: | Line 29: | ||
Below you find the relevant code: | Below you find the relevant code: | ||
- | '' | + | < |
+ | # Install Git | ||
+ | sudo apt install git -y | ||
+ | # Checkout the source and install | ||
+ | git clone https:// | ||
+ | cd chia-blockchain | ||
+ | sh install.sh | ||
+ | . ./ | ||
+ | </ | ||
- | '' | ||
- | ''# | + | ====Step 3 - Prepare the config.yaml==== |
- | + | ||
- | '' | + | |
- | + | ||
- | '' | + | |
- | + | ||
- | '' | + | |
- | + | ||
- | '' | + | |
- | + | ||
- | + | ||
- | ====Step 3 - Start Chia testnet7==== | + | |
- Initialize the chia process by: '' | - Initialize the chia process by: '' | ||
- point to testnet7 instead of mainnet: '' | - point to testnet7 instead of mainnet: '' | ||
Line 47: | Line 46: | ||
Now comes a tricky part. Using '' | Now comes a tricky part. Using '' | ||
- | the previous step only changed the target network from mainnet to testnet7 and the external port from 8444 to 58444 in config.yaml. All other internal TCP ports are 8XXX, just like your Windows running the mainnet instance. This will lead to TCP ports conflicts. | + | the previous step only changed the target network from mainnet to testnet7 and the external port from 8444 to **5**8444 |
- | To change this, we need to go to the config.yaml file and change all 8xxx ports to 58xxx ports (about 10 occurences) | + | To change this, we need to go to the config.yaml file and change all 8xxx ports to **5**8xxx |
You can do this by | You can do this by | ||
- | * using '' | + | * using '' |
Safe your changes using ctrl+O and then hit enter. Use ctrl+X to close the nano instance and return to your Linux CLI. | Safe your changes using ctrl+O and then hit enter. Use ctrl+X to close the nano instance and return to your Linux CLI. | ||
* or by navigating in the Windows File Explorer to | * or by navigating in the Windows File Explorer to | ||
- | \\wsl$\Ubuntu 20.04\home\< | + | '' |
and changing the config.yaml using Notepad. | and changing the config.yaml using Notepad. | ||
Safe the config.yaml file after the edits. | Safe the config.yaml file after the edits. | ||
+ | ==== Step 4 - Start Chia on testnet7 ==== | ||
+ | It’s time to start synching the testnet7 blockchain and the wallet. This is done by using | ||
+ | '' | ||
+ | |||
+ | At this point, if you get an error try to retrace the previous steps. Still having issues? Our experts will support you in our [[https:// | ||
- | It’s time to start synching the testnet7 blockchain and the wallet. This is done by using | ||
- | '' | ||
- | If you get an error, try to retrace the previous steps. Still having issues? Our experts will support you in our [[https:// | ||
See if all processes started correctly by using '' | See if all processes started correctly by using '' | ||
- | use the command '' | + | use the command '' |
add '' | add '' | ||
- | Now you need to wait until you finished synching | + | ====Step 5 - Syncing the testnet blockchain==== |
+ | Now it is time to get up to speed on the testnet blockchain. | ||
+ | There are two ways to sync the testnet blockchain: | ||
+ | * Downloading the db file from the Chia Github (+-12minutes) | ||
+ | * Synchronizing the blockchain through a peer-to-peer network (+-8 hours) | ||
+ | |||
+ | ===Downloading the testnet db=== | ||
+ | - You can download the testnet db file from the [[https:// | ||
+ | - Stop all the chia processes with '' | ||
+ | - Check all are gone with '' | ||
+ | - '' | ||
+ | - '' | ||
+ | - copy the downloaded db to '' | ||
+ | |||
+ | * do it from Windows in the File Explorer using '' | ||
+ | * or do it from WSL, if you downloaded the db in e.g. '' | ||
+ | |||
+ | When you are done copying, you can restart all the Chia processes by using '' | ||
- | In the meantime, try to get your hands on some TXCH (testnet Chia) by asking your friends. Don’t have friends? No problem, you can always ask us on [[https://discord.gg/EgnjUCnCCt|Discord]]. You can find your keys by using chia keys show. | + | If the node restarts properly, don't forget |
+ | rm ~/.chia/mainnet/db/blockchain_v1_mainnet.sqlite.bak | ||
+ | === Synchronising peer-to-peer=== | ||
+ | For this method you have to do nothing but wait. | ||
+ | Keep tracking your synchronization progress by using command '' | ||
+ | ==== Step 6 - Using testnet ==== | ||
+ | Once you are fully synched, you can start making (pool) plots and interact with testnet. In the meantime, try to get your hands on some TXCH (testnet Chia) by asking your friends. Don’t have friends? No problem, you can always ask us on [[https:// | ||
+ | An community built explorer for testnet can be found here: https:// | ||
+ | You may join the SpaceFarmer testnet pool by asking in our [[https:// | ||
network/chianetwork/testnet.1631624066.txt.gz · Last modified: 2021/09/14 12:54 by vleesbanaan