Skip to content

Commit

Permalink
Merge pull request #454 from Chia-Network/testnet-install-updates-fixes
Browse files Browse the repository at this point in the history
Update cofarming and private testnet
  • Loading branch information
BrandtH22 committed Dec 18, 2023
2 parents ac469ab + 590e9d1 commit c0f8989
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions docs/getting-started/testnets.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ Alternatively, you can manually edit the ports in `config.yaml`.

```bash
# Export the Chia root
export CHIA_ROOT ~/.chia/testnet
export CHIA_ROOT=~/.chia/testnet
# Initialize testnet
chia init
Expand All @@ -108,29 +108,29 @@ chia configure --testnet true
# Edit the file `~/.chia/testnet/config/config.yaml` and set the following fields to the new port values.
# Use the ports listed or choose any you desire as long as they are different than the default values for mainnet.
yq -i '.daemon_port = 55401' ~/.chia/testnet/config/config.yaml
yq -i '.ui.daemon_port = 55401' ~/.chia/testnet/config/config.yaml
yq -i -y '.daemon_port = 55401' ~/.chia/testnet/config/config.yaml
yq -i -y '.ui.daemon_port = 55401' ~/.chia/testnet/config/config.yaml
yq -i '.ui.port = 8802' ~/.chia/testnet/config/config.yaml
yq -i -y '.ui.port = 8802' ~/.chia/testnet/config/config.yaml
yq -i '.farmer.port = 8547' ~/.chia/testnet/config/config.yaml
yq -i '.full_node.farmer_peer.port = 8547' ~/.chia/testnet/config/config.yaml
yq -i '.harvester.farmer_peer.port = 8547' ~/.chia/testnet/config/config.yaml
yq -i -y '.farmer.port = 8547' ~/.chia/testnet/config/config.yaml
yq -i -y '.full_node.farmer_peer.port = 8547' ~/.chia/testnet/config/config.yaml
yq -i -y '.harvester.farmer_peer.port = 8547' ~/.chia/testnet/config/config.yaml
yq -i '.harvester.port = 8548' ~/.chia/testnet/config/config.yaml
yq -i '.farmer.harvester_peer.port = 8548' ~/.chia/testnet/config/config.yaml
yq -i -y '.harvester.port = 8548' ~/.chia/testnet/config/config.yaml
yq -i -y '.farmer.harvester_peer.port = 8548' ~/.chia/testnet/config/config.yaml
yq -i '.wallet.port = 8649' ~/.chia/testnet/config/config.yaml
yq -i '.full_node.wallet_peer.port = 8649' ~/.chia/testnet/config/config.yaml
yq -i -y '.wallet.port = 8649' ~/.chia/testnet/config/config.yaml
yq -i -y '.full_node.wallet_peer.port = 8649' ~/.chia/testnet/config/config.yaml
yq -i '.full_node.rpc_port = 8800' ~/.chia/testnet/config/config.yaml
yq -i '.ui.rpc_port = 8800' ~/.chia/testnet/config/config.yaml
yq -i -y '.full_node.rpc_port = 8800' ~/.chia/testnet/config/config.yaml
yq -i -y '.ui.rpc_port = 8800' ~/.chia/testnet/config/config.yaml
yq -i '.farmer.rpc_port = 8571' ~/.chia/testnet/config/config.yaml
yq -i -y '.farmer.rpc_port = 8571' ~/.chia/testnet/config/config.yaml
yq -i '.harvester.rpc_port = 8572' ~/.chia/testnet/config/config.yaml
yq -i -y '.harvester.rpc_port = 8572' ~/.chia/testnet/config/config.yaml
yq -i '.wallet.rpc_port = 9456' ~/.chia/testnet/config/config.yaml
yq -i -y '.wallet.rpc_port = 9456' ~/.chia/testnet/config/config.yaml
# Start Chia
chia start farmer
Expand All @@ -151,8 +151,8 @@ To swap between running commands for mainnet and running commands for testnet, y

0. Stop all chia processes. Check that they have stopped with `ps -ef | grep chia`
1. Create a new chia root using `export CHIA_ROOT="~/.chia/my_testnet"`, then `chia init`. Don't forget to export CHIA_ROOT, or prefix your chia commands with `CHIA_ROOT="~/.chia/my_testnet"` if you want to run on my_testnet when starting a new terminal.
2. Create a new entry in config.yaml with a different GENESIS_CHALLENGE, and reduced DIFFICULTY_CONSTANT_FACTOR. 2^67 constant factor is around 110PiB assuming a fast timelord. So if you have around 110GiB, you can set it to 2 ^ 47. Decrease SUB_SLOT_ITERS_STARTING to something like 2^23 if you are using a slow computer. Decrease PLOT_FILTER if you want to have more proof checks per signage point.
3. Make sure to add **my_testnet** to all places that need it, like network_overrides.config, and selected_network
2. Create a new entry in config.yaml with a different [GENESIS_CHALLENGE](https://docs.chia.net/consensus-challenges/#genesis-challenge), and reduced `DIFFICULTY_CONSTANT_FACTOR`. `2^67` constant factor is around 110PiB assuming a fast timelord. So if you have around 110GiB, you can set it to `2 ^ 47`. Decrease `SUB_SLOT_ITERS_STARTING` to something like `2^23` if you are using a slow computer. Decrease `PLOT_FILTER` if you want to have more proof checks per signage point.
3. Make sure to add **my_testnet** to all places that need it, like `network_overrides.config`, and `selected_network`
4. Change the introducer URLs to point to localhost so you don't contact the real ones
5. Do `sh install-timelord.sh`
6. Run the system with `chia start all`
Expand Down

0 comments on commit c0f8989

Please sign in to comment.