User Tools

Site Tools


crypto:chia:initialize

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
crypto:chia:initialize [2021/06/25 08:32] – [Start plotting] petercrypto:chia:initialize [2021/06/26 11:43] (current) – [Start the wallet and generate your private key as well as passphrase] peter
Line 1: Line 1:
 ====== Crypto - Chia - Initialize ====== ====== Crypto - Chia - Initialize ======
  
-Initialize the nodes and save your private keys +Initialize the nodes and save the private keys
- +
----- +
- +
-===== Use tmux (Optional) ===== +
- +
-Using tmux will help ensure chia runs even after a disconnect: +
- +
-<code bash> +
-sudo apt install tmux -y  # Start tmux. +
-tmux new -s plot          # Activate virtual environment. +
-</code>+
  
 ---- ----
Line 35: Line 24:
  
   * **init** checks for old versions of chia installed in the ~/.chia directory.   * **init** checks for old versions of chia installed in the ~/.chia directory.
-    * If so, init migrates these old files to the new version: + 
-      * config (including old SSL files) +  * If an old version of Chia exists, init migrates these old files to the new version: 
-      * db +    * config (including old SSL files) 
-      * wallet +    * db 
-      * Using config.yaml, updates wallet keys and ensures rewards go to the right wallet.+    * wallet 
 +    * Using config.yaml, updates wallet keys and ensures rewards go to the right wallet.
  
   * If no old version exists, init:   * If no old version exists, init:
-    * Creates a default chia configuration+    * Creates a default chia configuration.
     * Initializes a new SSL key and cert (for secure communication with the GUI).     * Initializes a new SSL key and cert (for secure communication with the GUI).
  
Line 48: Line 38:
  
 ---- ----
- 
-===== Start the services ===== 
- 
-<code bash> 
-chia start farmer 
-</code> 
- 
-<WRAP info> 
-**NOTE:**  This will start the farmer, harvester, a full node, and the wallet. 
- 
-  * Adding **-r** at the end will restart the service. 
- 
-</WRAP> 
- 
----- 
- 
-===== Start plotting ===== 
- 
-Identify which drive you want to do the plotting on. 
- 
-<WRAP important> 
-**WARNING:**  It is not a good idea to do this on the drive that your boot lives on. 
-</WRAP> 
- 
-The simplest command to get started with running a plot. 
- 
-<code bash> 
-chia plots create -k 32 -n 100 -t /mnt/chia-temp/ -d /mnt/chia/ 
-</code> 
- 
-<WRAP info> 
-**NOTE:** 
- 
-  * **k 32**:  The size of plot. 
-    * Minimum is 32. 
-  * **n 100**:  The number of plots in sequence. 
-  * **t /mnt/chia-temp/**:  The temporary directory, where the plot gets generated with heavy Reads/Writes. 
-    * Ideally this should be on a faster drive. 
-  * **d /mnt/chia**:  The final destination directory, where the final plot will stay to be farmed. 
-    * A slower disk is fine here. 
- 
-</WRAP> 
- 
-<WRAP info> 
-**NOTE:**  To disconnect from tmux, ctrl-b then d. To reattach, tmux a -t plot 
-</WRAP> 
- 
----- 
- 
-This it! You are now generating plots.  
- 
-As soon as a plot finishes, the farmer that we started earlier will pick it up and start farming. 
- 
----- 
- 
-===== Verify that farming is working ===== 
- 
-Verify this you can run while having the venv activated: 
- 
-<code bash> 
-chia farm summary 
-</code> 
- 
-Initially you should see something like this: 
- 
-<code bash> 
-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 
-</code> 
  
crypto/chia/initialize.1624609940.txt.gz · Last modified: 2021/06/25 08:32 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki