Skip to content

CPU mining

Heng Teng Yi edited this page Jun 23, 2018 · 8 revisions

CPU Mining Guide

So...you don't have a GPU. But you still wanna try mining. You'll be competing with GPUs and ASICs hundreds or thousands of time faster, but why not Welcome to the CPU Mining Guide.

Prequisites

  1. You'll need a computer with a x86_64 architecture CPU with a minimum of SSE2 support (that works, preferably)
  2. You have to be running a 64-bit Windows installation.

cpuminer-opt

Download the latest Windows binaries from https://github.com/JayDDee/cpuminer-opt/releases. Unzip the file into a folder.

Setting up RIchCoin.conf

Next, open up your configuration file, which should look something like this:

  • rpcuser=user
  • rpcpassword=password
  • rpcport=20203
  • port=21203
  • daemon=1
  • algo=groestl

We're going to add server=1, listen=1, rpcallowip=localhost so the file looks like this:

  • rpcuser=user
  • rpcpassword=password
  • rpcport=20203
  • port=21203
  • daemon=1
  • algo=groestl
  • server=1
  • listen=1
  • rpcallowip=localhost

Also, change the algo to the algorithm you wish to mine on. If you plan on pool mining, replace localhost with your pool address.

Setting up your .bat file

Finally, open the folder your cpuminer files are stored in. Create a new file called cpuminer.txt. Put the following line in the file and save:

cpuminer.exe -a <YOUR ALGO> -o http://127.0.0.1:20203 --userpass=<YOUR RPCUSER>:<YOUR RPC PASSWORD> -t <NUMBER_OF_THREADS>

If pool mining, it should be

cpuminer.exe -a <YOUR ALGO> -o stratum+tcp://<YOUR POOL ADDRESS>:<YOUR POOL PORT> --userpass=<YOUR RPCUSER>:<YOUR RPC PASSWORD> -t <NUMBER_OF_THREADS>

Rename the file to cpuminer.bat. Rename cpuminer-avx2.exe to cpuminer.exe.

Note: For Intel Core CPUs before the 6th generation, you should rename cpuminer-aes-sse42.exe instead.

Note: For Ryzen CPUs, you should rename cpuminer-avx2-sha.exe instead.

Note: For groestl users, you'll have to specify myriad-groestl instead of groestl.

Note: For lyra users, you'll have to specify lyra2v2 instead of lyra.

Mining

Finally, open up your qt-wallet. Wait a couple seconds for the wallet to sync with the blockchain. And then, the magic happens. Click on your cpuminer.bat and you should start mining. If the file prints errors, that means your wallet was not synced up, or your configuration was wrong.

Have fun mining!

Clone this wiki locally