Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| blockchain:chia-network [2023/07/30 12:10] – removed - external edit (Unknown date) 127.0.0.1 | blockchain:chia-network [2023/08/01 21:26] (current) – [Chia Network] Zyzonix | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Chia Network ====== | ||
| + | <callout type=" | ||
| + | |||
| + | **There are public nodes for Chia, HDDCoin, STAI and BPX Network where you can try connecting to if experiencing connection issues: [[user: | ||
| + | ===== Install Chia-Blockchain from Repository ===== | ||
| + | |||
| + | To install the [[https:// | ||
| + | |||
| + | **1.** Install required packages: | ||
| + | <code bash> | ||
| + | |||
| + | **2.** Get the repositories GPG key: | ||
| + | <code bash> | ||
| + | |||
| + | **3.** Paste repository URL to sources list: | ||
| + | <code bash> | ||
| + | |||
| + | //Sourced from [[https:// | ||
| + | |||
| + | ------- | ||
| + | ===== Auto start Chia-Blockchain on system startup ===== | ||
| + | |||
| + | It is possible to start Chia-Blockchain and forks of it automatically after system startup through a system service on Linux. | ||
| + | This guide shows how to add a system service for Chia under ''/ | ||
| + | |||
| + | **1.** Create the service file: | ||
| + | <code bash> | ||
| + | |||
| + | **2.** Paste the content: | ||
| + | |||
| + | <callout type=" | ||
| + | |||
| + | If installed chia via '' | ||
| + | <code bash> | ||
| + | [Unit] | ||
| + | Description=Chia Blockchain Node Autostart | ||
| + | Wants=network-online.target | ||
| + | After=network.target network-online.target | ||
| + | StartLimitIntervalSec=0 | ||
| + | |||
| + | [Service] | ||
| + | Type=forking | ||
| + | Restart=always | ||
| + | RestartSec=1 | ||
| + | User=root | ||
| + | ExecStart=/ | ||
| + | ExecStop=/ | ||
| + | |||
| + | [Install] | ||
| + | WantedBy=multi-user.target | ||
| + | </ | ||
| + | |||
| + | Otherwise if installed chia from source: | ||
| + | <code bash> | ||
| + | [Unit] | ||
| + | Description=Chia Blockchain Node Autostart | ||
| + | Wants=network-online.target | ||
| + | After=network.target network-online.target | ||
| + | StartLimitIntervalSec=0 | ||
| + | |||
| + | [Service] | ||
| + | Type=forking | ||
| + | Restart=always | ||
| + | RestartSec=1 | ||
| + | User=root | ||
| + | Environment=PATH=/ | ||
| + | ExecStart=/ | ||
| + | ExecStop=/ | ||
| + | |||
| + | [Install] | ||
| + | WantedBy=multi-user.target | ||
| + | </ | ||
| + | |||
| + | You can edit the line '' | ||
| + | |||
| + | For example to start Node and Timelord edit '' | ||
| + | <code bash> | ||
| + | |||
| + | This services were tested for [[https:// | ||
| + | |||
| + | ------- | ||
| + | ===== Plotting in RAM (Linux) ===== | ||
| + | |||
| + | <callout type=" | ||
| + | |||
| + | This section show how to create plots in RAM, which is extremely fast and doesn' | ||
| + | Also with older hardware (from 2014) it is possible to create plots in under 30 min. | ||
| + | |||
| + | ==== Using bladebit ==== | ||
| + | |||
| + | <callout type=" | ||
| + | |||
| + | Nevertheless it is recommended to have a NVMe or SATA SSD installed where the plot can be saved after plotting. Otherwise the time of writing the plot to a hard disk would make this way of plotting very expensive because server hardware clearly consumes more energy than other hardware. | ||
| + | |||
| + | The best way of RAM plotting is plotting while moving a already plotted other plot to a hard disk. So when shutting down the plotting machine keep one plot on the SSD storage, this plot can be moved to the a HDD next time while plotting a new plot in RAM after the next startup. | ||
| + | |||
| + | To create plots in RAM use this command: | ||
| + | <code bash> | ||
| + | chia plotters bladebit ramplot -r < | ||
| + | </ | ||
| + | |||
| + | **Parameters: | ||
| + | |||
| + | <WRAP 40%> | ||
| + | < | ||
| + | ^ Parameter | ||
| + | | -d         | Destination path to temporary SSD storage (NVMe/ | ||
| + | | -r         | Threads to use (Depends on CPU)                              | '' | ||
| + | | -n         | Count of plots to plot                                       | '' | ||
| + | | -c         | Contract ID (if plotting NFT plot) (starts with '' | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | ==== Using tmpfs ==== | ||
| + | |||
| + | First create a " | ||
| + | <code bash> | ||
| + | ramdisk | ||
| + | </ | ||
| + | Adjust the value of '' | ||
| + | |||
| + | After updating the '' | ||
| + | <code bash> | ||
| + | |||
| + | Finally you can use the default Chia plotter to create the plots. **Remind that it will be faster than on a NVMe but much slower than bladebit!** | ||
| + | <code bash> | ||
| + | chia plots create -k33 -b200000 -c < | ||
| + | </ | ||
| + | ------- | ||