Chia official protocol multi-machine cluster mining detailed tutorial

Chia official protocol multi-machine cluster mining detailed tutorial

Cluster Mining Tutorial

Multiple harvesters and one farmer for cluster mining, the farmer only needs one computer to synchronize the node and wallet.

Farmer is responsible for synchronizing nodes and connecting to mining pools

Harvester is responsible for photo editing and mining

Step 1: Configure the Farmer node

Use a computer as a Farmer, synchronize the node, create NFT and connect to the official mining pool.

Refer to the Chia official mining pool protocol mining tutorial .

Step 2: Harvester connects to Farmer

The Harvester computer does not need to synchronize nodes and wallets. There is no official graphical interface program to run Harvester separately, and it can only be started through the command line.

1 Windows Harvester Configuration

Download the latest official installer

The chia software version used in this article is 1.2.2

Since there is no official separate Harvester GUI program, we use the command line to start the harvester

Configuring the harvester



Open the cmd command line tool

Press the Windows+R keys at the same time to open the Run window, then enter cmd and press Enter to confirm, as shown below.

Enter the chia program execution directory

Enter the following command and replace 1.2.2 with the version number of the chia program you downloaded.


 cd %USERPROFILE%\AppData\Local\Chia-Blockchain\app-1.2.2\resources\app.asar.unpacked\daemon\ 

This directory is the chia.exe execution directory. All subsequent chia.exe programs must be executed in this directory. You need to enter this directory first.

Copy the farmer certificate to the harvester

Copy the certificate ca directory from the Farmer computer (the directory is C:\Users\ xx \.chia\mainnet\config\ssl\ca, xx is your computer user name ) to the Harvester computer and put it in any place, such as C:\farmer-ca directory.

Execute the following command in the cmd window of the Harvester computer, where -c is the path to the certificate file copied from the farmer computer .


 .\chia.exe init -c C:\farmer-ca\ca 

Modify the harvester configuration file

The path of the configuration file is C:\Users\ xx \.chia\mainnet\config\config.yaml ( xx is your computer user name ) . Use Notepad to open the file ( right click -> Open with -> More Applications -> Notepad ) and find the harvester configuration, as shown below.

Modify the host configuration of farmer_peer under harvester to the IP address of the Farmer computer


How to check the IP address of farmer computer?

On the farmer computer, press Windows+R to open the Run window, enter cmd and press Enter, and execute the command ipconfig to view the IP address of the farmer computer.


For more methods, refer to the following article:

How to check the IP address of a computer?

The harvester only needs to be configured once, and then you only need to start the harvester.

Run the harvester




Start the harvester  

Run in the harvester computer cmd window


 .\chia.exe start harvester 


Stop harvester

Run in the harvester computer cmd window


 .\chia.exe stop harvester

2 Linux harvester configuration

Download the latest official installer and install chia

Copy the Farmer certificate

Copy the certificate directory from the Farmer computer (directory is ~/.chia/mainnet/config/ssl/ca ) to the harvester computer, for example, copy it to /tmp/farmer-ca/

Execute Command


 chia init -c /tmp/farmer-ca/ca 

Modify the configuration file

The directory is ~/.chia/mainnet/config/config.yaml

Modify the host configuration of farmer_peer under harvester to the IP address of the Farmer computer

Start the harvester  

run


 chia start harvester 

Stop harvester  

run


 chia stop harvester 


Step 3 Harvester P-map

Harvester can use the official program to edit the image, or use any other editing software that supports the official mining pool protocol. The farmer public key used for editing the image is the farmer public key in the Farmer's computer , and the contract address is the contract address of PlotNFT in the Farmer's computer.

The directory of P pictures should be added to the harvester

Harvester adds P-picture file directory method

1 windows

Take adding P picture directory H disk as an example

Use the following command to add a P-image directory, -d is the P-image file directory, one directory at a time, and execute multiple commands to add multiple directories.


 .\chia.exe plots add -d H:\ 

Use the following command to view all added P-image directories.


 .\chia.exe plots show

2 Linux

Use the following command to add the plot directory


 chia plots add -d /data/chia1 

Use the following command to view all added plots directories


 chia plots show 

After adding the P-image directory, restart the Harvester, first stop the harvester and then restart it

View harvester on Farmer computer

Windows Computer

In the chia software farm page, you can see the connected harvester P-map file. Node Id is the harvester computer node ID. The same ID is the same harvester computer.

Ubuntu Computer

Execute the following command on the farmer computer


 chia farm summary 

You can see the harvester information connected to the farmer

If you have any questions, please add Hashpool assistant WeChat (hashpool) and join the group to communicate.


<<:  V God and Paradigm Research Partner: Ethereum 2.0 will be able to resist reorganization attacks after the merger

>>:  What exactly is the digital RMB that has been connected to Alipay and can be used anonymously?

Recommend

Things to note before trading Ethereum

Rage Comment : As the digital currency market mat...

Where does the mole of killing the child grow and what are the effects

There may be many moles on the face, and these mo...

A woman with a mole on her lips

For some women who love beauty, having moles on t...

What is the Fed’s logic behind raising interest rates?

Neel Kashkari, president of the Minneapolis Feder...

Analysis of the five lucky and blessed features of women

There are good and bad facial features. Which faci...

Facial features of emotional indifference after marriage

Facial features of emotional indifference after m...

Facial features that indicate early marriage

Facial features that indicate early marriage By o...

Bitcoin remittance app Abra receives $12 million in Series A funding

On September 10, Bitcoin remittance app startup A...

Graphic interpretation of downward curved marriage line: bad luck in marriage!

How to interpret the downward bending marriage li...

What kind of face is fierce? People with fierce faces

Whether a person's face is fierce or not can ...