Miner
Miners are participants on the network who perform the work needed to advance the blockchain and maintain its effectiveness. In order to provide these services, miners are paid in local cryptocurrency.
Mining is the process of creating new blocks. New blocks are always created in xfsgo network, but these blocks need to be protected by workload proof so that other nodes can accept them. Mining is to create the value of these workloads.
Before starting mining, always ensure that your blockchain is fully synchronized with the network chain, otherwise you will not be able to mine on the correct chain, and your blockawards will be worthless. You can use the following command to view the progress of the current synchronization:
1
xfsgo chain syncstatus
Copied!

Start worker

When the chain data synchronization is completed, use the start command to start the miner and start work
1
xfsgo miner start
Copied!
By default, the above command will start an appropriate number of worker threads based on the maximum number of threads of the local computer's CPU
To customize the number of worker threads at startup, you can specify the workers parameter
1
xfsgo miner start --workers <number>
Copied!
You can also use the setworkers command after startup to dynamically adjust the number of working threads running
1
xfsgo miner setworkers <number>
Copied!

Check running status

Use the status command to view the working status of the current miner and some reference indicators:
1
xfsgo miner status
Copied!