====== Crypto - Chia - CLI - Run ====== ===== Use tmux (Optional) ===== Using tmux will help ensure chia runs even after a disconnect: tmux new -s plot # Activate a virtual environment named plot. **NOTE:** * Install tmux is not already installed: sudo apt install tmux -y An alternative to using tmux is to use **screen**. ---- ===== Activate the virtual environment ===== cd chia-blockchain . ./activate ---- ===== Start the services ===== chia start farmer **NOTE:** This will start the farmer, harvester, a full node, and the wallet. * **node**: This syncs your computer with the blockchain. * **farmer**: The farmer sends out proof requests to the harvester. * **harvester**: The harvester checks your plots to see if they satisfy the proof. * If you have the best proof, you win coins. * Adding **-r** at the end of the command will restart the service. ---- ===== Add additional nodes ===== chia show -a node.chia.net:8444 chia show -a node-eu.chia.net:8444 chia show -a introducer-eu.chia.net:8444 ---- ===== Check that nodes are connected ===== chia show -c | grep FULL_NODE returns: FULL_NODE 220.255.227.95 8444/8444 65f8fabe... Jul 10 11:21:55 0.0|29.5 FULL_NODE 178.149.18.34 8444/8444 f8d58720... Jul 10 11:11:12 0.0|0.0 FULL_NODE 114.215.43.10 8444/8444 7b220d31... Jul 10 11:21:04 0.0|0.1 FULL_NODE 98.10.204.209 8444/8444 954d2049... Jul 10 11:21:55 0.0|0.1 FULL_NODE 109.230.44.137 8444/8444 3c383b99... Jul 10 11:21:58 0.0|0.0 FULL_NODE 62.171.139.57 8444/8444 3dc607d0... Jul 10 11:21:55 0.0|0.0 FULL_NODE 178.148.209.25 8444/8444 aa688543... Jul 10 11:21:55 0.0|0.0 FULL_NODE 73.49.71.250 8444/8444 d042fe98... Jul 10 11:21:58 0.0|0.0 ---- ===== Start plotting ===== Identify which drive you want to do the plotting on. **WARNING:** It is not a good idea to do this on the drive that your boot lives on. chia plots create -k 32 -b 8192 -r 4 -n 20 -t /chia-temp/ -d /chia chia plots create -k 32 -b 4000 -r 4 -n 20 -t /chia-temp/ -d /chia or chia plots create -k 32 -n 20 -t /chia-temp/ -d /chia/ **NOTE:** * **k 32**: The size of plot. * Minimum is 32. * **n 20**: The number of plots in sequence. * **t /chia-temp/**: The temporary directory, where the plot gets generated. * This will have heavy Reads and Writes. * Ideally this should be on a faster drive. * **d /chia**: The final destination directory, where the final plot files will stay to be farmed. * A slower disk is fine here. **NOTE:** To disconnect from tmux: CTRL-b d * To reattach: tmux a -t plot ---- This it! You are now generating plots. As soon as a plot finishes, the farmer that will pick it up and start farming. ---- ===== Verify that farming is working ===== Verify this you can run while having the venv activated: chia farm summary Initially you should see something like this: Farming status: Farming Total chia farmed: 0.0 User transaction fees: 0.0 Block rewards: 0.0 Last height farmed: 0 Plot count: 4 Total size of plots: 405.432 GiB Estimated network space: 2185.329 PiB Expected time to win: 2 years and 11 months ---- ===== Check Chia Node Status (Syncing with Blockchain) ===== chia show -s returns: Current Blockchain Status: Syncing 5193/551700. Peak: Hash: d4d979d0a3e2898c424b46f35716f9d95dfc566c1c078db59dddb51c96183ebd Time: Sat Mar 20 2021 13:09:51 UTC Height: 5193 Estimated network space: 121.667 PiB Current difficulty: 8 Current VDF sub_slot_iters: 112197632 Total iterations since the start of the blockchain: 15616098130 Height: | Hash: 5193 | d4d979d0a3e2898c424b46f35716f9d95dfc566c1c078db59dddb51c96183ebd 5192 | f6c6e0333b951ba9f7da4d2636368e884dcfa3f2b36c70c091fa0566ef854059 5191 | 86a14c3bb6fd87a4228971ecfac6102c13875425aa100b1ea1bdcea931008468 5190 | ad0dc563fd6df55cdfbc30d8257267c999a8a1b26a593d03fb1dac0766189755 5189 | fdd6be59bf15594c73d0d4a14adb86a72aac030973f1b03898f89dc44209a7f7 5188 | a56c0f2031bb0f9cead5ac2d2620587094a8d22bdfeeab0fc9e2097686a2e468 5187 | 6530d31c76735d6a5c1aa5a51dadffc0dcf1515b59a8e6a7684a54d19cce7850 5186 | dc24a2c9115715bdbab70346859671595c7831d6d0a8a7551c0986ec9e94f811 5185 | e227a31309bcb456913a1551e01c087c380a172bef129c864681367268ec73bd 5184 | 18b67b8ba71f035795f538a2e2807847acf087a832e70de8f196a22e7eaf1b0d