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/05/12 17:18] 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 
 + 
 +---- 
 + 
 +===== Activate the virtual environment =====
  
 <code bash> <code bash>
-# Activate the virtual environment in dir chia-blockchain+cd chia-blockchain
 . ./activate . ./activate
 </code> </code>
Line 10: Line 14:
 ---- ----
  
-====== Start the wallet and generate your private key as well as passphrase ======+===== Start the wallet and generate your private key as well as passphrase =====
  
 <code bash> <code bash>
Line 18: Line 22:
 <WRAP important> <WRAP important>
 **WARNING:**  Do not share your private keys and passphrase with anyone else. **WARNING:**  Do not share your private keys and passphrase with anyone else.
-</WRAP> 
  
-----+  * **init** checks for old versions of chia installed in the ~/.chia directory.
  
-====== Start the services ======+  * If an old version of Chia exists, init migrates these old files to the new version: 
 +    * config (including old SSL files) 
 +    * db 
 +    * wallet 
 +    * Using config.yaml, updates wallet keys and ensures rewards go to the right wallet.
  
-<code bash> +  If no old version exists, init: 
-chia start farmer +    Creates default chia configuration
-</code> +    Initializes a new SSL key and cert (for secure communication with the GUI).
- +
-<WRAP info> +
-**NOTE:**  This will start the farmer, harvester, full node, and the wallet+
- +
-  Adding **-r** at the end will restart the service.+
  
 </WRAP> </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> 
- 
-First, lets use tmux to help ensure this runs after we disconnect 
- 
-<code bash> 
-sudo apt-get install tmux -y# Start tmux 
-tmux new -s plot# Activate venv 
-cd chia-blockchain 
-. ./activate 
-</code> 
- 
-The simplest command to get started with running a plot. 
- 
-<code> 
-# k = 32, this controls the size of plot. Minimum is 32 
-# n = 100, Number of plots, pick a high number 
-# t = folder location, this is where the plot gets generated with heavy Reads/Writes. You want this to be a faster drive. 
-# d = destination folder, this is the destination for where you want the final plot will stay, slower is fine.chia plots create -k 32 -n 100 -t /mnt/a/generating_plots/ -d /mnt/a/plots/ 
-</code> 
- 
-<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 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.1620839927.txt.gz · Last modified: 2021/05/12 17:18 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki