1

CpuMiner for Solo Mining Mode Guide.

After you download the ENTIRE block chain, and u get ur bitcoincore running in Node Mode, just installing the program and allowing it in the firewall, u need to go to the AppData Hidden folder. Search for the data of the blockChain and then create a config file. I am in the windows system, the x64version, so im doing... A confing file like this, and renaming it to (coinbase.conf)

Here there is no pool. And if u hit a block with ur CPU and ur bandwidth nobody gonna split the revenue. Some ppl say that this is like playing the lottery... Well i don't have nothing to loose and i would be learning a bit more about software and sharing great knowledge with the crypto community, plz don't be angry with me :C

So ! I started preconfiguring the file.

server=1 
rpcuser=user
rpcpassword=1234
rpcallowip=127.0.0.1
rpcport=13000

I copy it to the folder where i have got the information of the block chain. I restart the coin base core And then I start my miner to do it on a solo mode. And i put this.

C:\Users\Acha\Desktop\pooler-cpuminer-2.5.0-win64>minerd.exe -o localhost:13000 -O user:1234 -t 8 --coinbase-addr=bc1q74nxlgjv8w384gssnxp8evnjlw3utm8zm3ctpe -D --protocol-dump

And im getting some wrong bitcoin invalid adress error.

As the ppl said in the post, this is the last compiled version of Cpu miner, and the support for this bitcoin addresses has been incorporated this last year . The guy behind this, is senior programmer so, maybe its busy, and he cant compile the new version. Anyway his job is awesome, and its under a gnu license. Thankyou. His project named Minerd or Cpuminer its here.

https://github.com/pooler/cpuminer/commits?author=pooler

Thankyou so much, it has a lot of work encoding data structures.

So at this point with the entire source code, and the upgrade of the bech32 addresses i need to recompile the entire thing to run properly on my windows.

The thing is... if its a C++ program would i be able to open it with visual studio? The answer is who knows.

Then i reasearched the internet for more information, and the ppl is giving me 2 pieces of software. This are the basic windows instructions by "Pooler" at the original project

Basic Windows build instructions, using MinGW:
    Install MinGW and the MSYS Developer Tool Kit (http://www.mingw.org/)
        * Make sure you have mstcpip.h in MinGW\include
    If using MinGW-w64, install pthreads-w64
    Install libcurl devel (http://curl.haxx.se/download.html)
        * Make sure you have libcurl.m4 in MinGW\share\aclocal
        * Make sure you have curl-config in MinGW\bin
    In the MSYS shell, run:
        ./autogen.sh    # only needed if building from git repo
        LIBCURL="-lcurldll" ./configure CFLAGS="-O3"
        make

https://en.wikipedia.org/wiki/MinGW#Components

For my surprise the First url is unavailable,

Then i installed the MSys2 -MSys Software and its a collection of GNU utilities such as bash, make, gawk and grep to allow building of applications and programs which depend on traditionally UNIX tools to be present. It is intended to supplement MinGW and the deficiencies of the cmd shell. An example would be building a library that uses the autotools build system.

So here I am, launching comands from a little shell/Terminal that maybe can compile the Pooler proyect,
The comands from the Msys terminal gcc--version | make--version |git--version

pacman -Su

Then i close the mysys, and open the, MinGw64

pacman -S gcc
pacman -S base-devel
pacman -Syu git make mingw-w64-x86_64-{gcc,cmake,icu,jemalloc,zlib} --force

Following this source in youtube. https://www.youtube.com/watch?v=pb6Yb819pF0

This is where i put the Pooler's project to compile

C:\msys64\home\Acha\cpuminer-master

I reached this point. I need some coffee and some gaming, I would try to do something at night here in Spain. More info about Clone projects

https://github.com/tpruvot/cpuminer-multi
https://github.com/vertoe/cpuminer-cach

Well surfing the web i encountered a clone project of this one but with a longer explanation and guide to set up the version to compile. Wellcome hell

Acha@DESKTOP-9QUABRJ MSYS /c/msys64/home/acha/cpuminer-master
$ ./autogen.sh

Acha@DESKTOP-9QUABRJ MSYS /c/msys64/home/acha/cpuminer-master
$ ./configure --host=x86_64-w64-mingw32 CFLAGS="-O3 -march=native -DCPU_X86_FORCE_INTRINSICS"``

Also the compiler is giving me toons of errors so im stucked here, but i will try tomorrow harder again.

Acha@DESKTOP-9QUABRJ MSYS /c/msys64/home/acha/cpuminer-master
$ make
make  all-recursive
make[1]: Entering directory '/c/msys64/home/acha/cpuminer-master'
Making all in compat
make[2]: Entering directory '/c/msys64/home/acha/cpuminer-master/compat'
Making all in jansson
make[3]: Entering directory '/c/msys64/home/acha/cpuminer-master/compat/jansson'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/c/msys64/home/acha/cpuminer-master/compat/jansson'
make[3]: Entering directory '/c/msys64/home/acha/cpuminer-master/compat'
make[3]: Nothing to be done for 'all-am'.
make[3]: Leaving directory '/c/msys64/home/acha/cpuminer-master/compat'
make[2]: Leaving directory '/c/msys64/home/acha/cpuminer-master/compat'
make[2]: Entering directory '/c/msys64/home/acha/cpuminer-master'
gcc -DHAVE_CONFIG_H -I.  -DCURL_STATICLIB  -I./compat/jansson   -fno-strict-aliasing -O3 -march=native -DCPU_X86_FORCE_INTRINSICS -MT minerd-scrypt.o -MD -MP -MF .deps/minerd-scrypt.Tpo -c -o minerd-scrypt.o `test -f 'scrypt.c' || echo './'`scrypt.c
/tmp/ccGUMY6c.s: Assembler messages:
/tmp/ccGUMY6c.s:59: Error: invalid register for .seh_savexmm
/tmp/ccGUMY6c.s:61: Error: invalid register for .seh_savexmm
/tmp/ccGUMY6c.s:63: Error: invalid register for .seh_savexmm
/tmp/ccGUMY6c.s:65: Error: invalid register for .seh_savexmm
/tmp/ccGUMY6c.s:67: Error: invalid register for .seh_savexmm
/tmp/ccGUMY6c.s:69: Error: invalid register for .seh_savexmm
/tmp/ccGUMY6c.s:71: Error: invalid register for .seh_savexmm
/tmp/ccGUMY6c.s:73: Error: invalid register for .seh_savexmm
make[2]: *** [Makefile:733: minerd-scrypt.o] Error 1
make[2]: Leaving directory '/c/msys64/home/acha/cpuminer-master'
make[1]: *** [Makefile:796: all-recursive] Error 1
make[1]: Leaving directory '/c/msys64/home/acha/cpuminer-master'
make: *** [Makefile:426: all] Error 2

I have all the binaries and the code is updated, ty for ur help. Im so sorry for the other post...if i can help in anyway... :( Ill keep u informed in this main topic. But any idea to understand wot im doing wrong is welcomed as always :3 I hateeeeee linuuuuuuuuuuuuuuuuuuuuux

Thanx Etsa

  • Mining on a CPU is a good way to waste money, get no reward for it, and burn out your CPU at the same time. For example see: bitcoin.stackexchange.com/questions/41276/… – chytrik Dec 9 '19 at 0:56
  • "Black ops"??? And as far as I know, the official cpuminer is not distributed in rar format. I would be concerned that you may have gotten some malware instead. – Nate Eldredge Dec 9 '19 at 5:02
3

Bech32 support was only added to CpuMiner in January, 2019 in 7e8960212f0055d6dafaa3c80812c50cec291de3.

v2.5.0 is a release form 2017, and looks to be the latest precompiled release.

You will need to mine to a p2sh or p2pkh address, or compile a newer version yourself.

In any case, CPU mining bitcoin is a waste of time, you will never see any ROI whatsoever.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.