Pages:
Author

Topic: SoloMining with CGMiner against Bitcoind / Bitcoin Core v0.18.1 (Read 2720 times)

member
Activity: 259
Merit: 85
So many numbers and so little time
That is because GBT was depreciated and possibly removed from cgminer a couple years after the Stratum protocol came into use in late 2013. In short it is looking for a Stratum V1 server as the connection to Core. Not sure if GBT can patched back into cgminer to mine directly to Core. Kano would be the one to ask about that.

Maybe can go through a Stratum V1 proxy as a middle man?


Bitcoincore GBT was removed from CGMiner, however it can be patched back in, see this thread.

https://bitcointalksearch.org/topic/guide-solo-mine-testnet-bitcoins-with-cgminer-bitcoin-core-and-a-compac-f-5415335
full member
Activity: 633
Merit: 159
That is because GBT was depreciated and possibly removed from cgminer a couple years after the Stratum protocol came into use in late 2013. In short it is looking for a Stratum V1 server as the connection to Core. Not sure if GBT can patched back into cgminer to mine directly to Core. Kano would be the one to ask about that.

Maybe can go through a Stratum V1 proxy as a middle man?

Kano won't add it back. I had requested this some time back and his comment was he didn't want to help people lose blocks...  Roll Eyes

The best option out there right now is either build your own pool from scratch (still happening on this end) or download and run open source pool code from CK or PublicPool. Those are the two best options if you are truly hell bent on solo mining to your own pool / node.
legendary
Activity: 3822
Merit: 2703
Evil beware: We have waffles!
That is because GBT was depreciated and possibly removed from cgminer a couple years after the Stratum protocol came into use in late 2013. In short it is looking for a Stratum V1 server as the connection to Core. Not sure if GBT can patched back into cgminer to mine directly to Core. Kano would be the one to ask about that.

Maybe can go through a Stratum V1 proxy as a middle man?
sr. member
Activity: 284
Merit: 259
Quote
but it doesn't see my new Gekkoscience Compac A1s. Does this cgminer build not have support for them?
Correct.
It probably does not support the Compac-F either as the drivers for both were added by Kano just a few years ago for the F and last year for the A1.
Link to Kano's git is in my sig.

btw: that version of cgminer you have is a hacked version and NOT recommended. Amongst other things it adds an extra nonce aka the Golden Nonce. That is a security risk as it allows the miner to switch work to mining other coins without telling you about it...

Great, thanks for the info! I had no idea. I was able to install Kano's version but now I'm getting an error when I run it:

"Pool 0 JSON failed to decode GBT"
legendary
Activity: 3822
Merit: 2703
Evil beware: We have waffles!
Quote
but it doesn't see my new Gekkoscience Compac A1s. Does this cgminer build not have support for them?
Correct.
It probably does not support the Compac-F either as the drivers for both were added by Kano just a few years ago for the F and last year for the A1.
Link to Kano's git is in my sig.

btw: that version of cgminer you have is a hacked version and NOT recommended. Amongst other things it adds an extra nonce aka the Golden Nonce. That is a security risk as it allows the miner to switch work to mining other coins without telling you about it...
sr. member
Activity: 284
Merit: 259
legendary
Activity: 2898
Merit: 1041
Thank you. I'll try to do this in Linux.
hero member
Activity: 630
Merit: 731
Bitcoin g33k
Quote
My own favorite is github.com/phaenomenon/cgminer, which is quite up-to-date (version 4.12.1)...

There is a ready-made assembly for Windows?

I don't think so. As far as I see this is *nix only so Windows won't be an option. However feel free to check out and read the documentation which is quite detailed and will potentially answer all of your questions. Good luck and happy mining!
legendary
Activity: 2898
Merit: 1041
Quote
My own favorite is github.com/phaenomenon/cgminer, which is quite up-to-date (version 4.12.1)...

There is a ready-made assembly for Windows?
hero member
Activity: 630
Merit: 731
Bitcoin g33k
what patch do you guys recommend for solo mining on bitcoind?

See here:
https://bitcointalksearch.org/topic/m.61461437

So that you don't do anything wrong when enabling the solo mining functionality and risk misconfiguration, I would highly recommend you to use ready-made cgminer versions that already contain this patch. There are several Github repositories. My own favorite is github.com/phaenomenon/cgminer, which is quite up-to-date (version 4.12.1) and includes many other useful things besides the actual Golden Guy patch. For example, it automatically checks the given payout address for correctness, only then the mining process starts at all. If you accidentally entered a Bech32 for solo mining, cgminer warns you at startup and aborts with an error message so you can correct it. Also, you can mine not only in mainnet but also in testnet. In testnet you need to provide a legacy address that starts with "m" or "n" and this is also handled by the input validation. The README contains useful information under "SOLO mining" and there are also very cool start scripts included, so you can get started right away.

I also highly recommend reading those two How-To's from nullama which explains how to mine on testnet using a GekkoScience Compac-F USB miner or even with a GPU/CPU:
[Guide] Solo mine testnet bitcoins with cgminer, Bitcoin Core, and a Compac F
[Guide] Solo mine testnet bitcoins with bfgminer, Bitcoin Core, and a CPU/GPU
newbie
Activity: 4
Merit: 0
what patch do you guys recommend for solo mining on bitcoind?
legendary
Activity: 2898
Merit: 1041
Hello. Can't start solo mining Bitcoin :-(
My configuration: computer with Windows 7, full node Bitcoin Core 0.18.1, cgminer 4.12.   USB Miner BitForce Jalapeno 7.5 GH/s

bitcoin.conf:
listen=1
daemon=1
server=1
rpcuser=xxxxxx
rpcpassword=xxxxxxxx
rpcallowip=127.0.0.1
rpcport=3333

cgminer command:

cgminer -o http://localhost:3333 -u USER -p PASS --btc-address YOURBITCOINADDRESS

newbie
Activity: 1
Merit: 0
Your setup looks quite good.  Cool But note that cgminer does not support BECH (bc1...) addresses for solo mining, so stick to legacy addresses p2pkh (1...) here.

In general, I would suggest to first mine some low diff bitcoin-forked altcoin (for example Bitflate or Widecoin) for testing purposes. So that you can verify your setup and make sure that you actually find blocks.

To avoid having the rpc password stored in plaintext in the bitcoin.conf config file, you can use rpcauth.py to generate a salted password hash, see https://github.com/bitcoin/bitcoin/blob/master/share/rpcauth/rpcauth.py

Noted and changed the BTC address. Thank you for this!

I'm not overly concerend with the RPC call showing the password in plain text as the LAN is isolated from the WAN and world so the plain text password doesn't concern me too much but I will look into modifying this in the future.


I guess the true test will be if you find a block, hopefully no-one else finds it at the same time and you can propogate the results out the rest of the network fast enough so that it recognizes your result before anyone elses.

Dedicated Fiber internet so I think I would be good on the network side.

I am most concerned if I have my setup correct! Smiley
jr. member
Activity: 50
Merit: 11
Thank you.
This one compiled with no issues... Smiley
member
Activity: 100
Merit: 29
This is the sequence I used:
git clone https://github.com/kanoi/cgminer
cd cgminer
./autogen.sh
CFLAGS="-O2 -Wall -march=native -fcommon" ./configure --enable-ants3
make
That's an ancient build target, and not actively supported anymore. Try an older version that should build fine, e.g. https://github.com/vthoang/cgminer
jr. member
Activity: 50
Merit: 11
This is the sequence I used:
git clone https://github.com/kanoi/cgminer
cd cgminer
./autogen.sh
CFLAGS="-O2 -Wall -march=native -fcommon" ./configure --enable-ants3
make
member
Activity: 100
Merit: 29
Hi all,

I cannot install the cgminer on my Ubuntu 20.04.5 LTS. I keep on getting this error message:

make[2]: *** [Makefile:999: cgminer-cgminer.o] Error 1
make[2]: Leaving directory '/home/user/bitcoin_testnet/cgminer'
make[1]: *** [Makefile:1894: all-recursive] Error 1
make[1]: Leaving directory '/home/user/bitcoin_testnet/cgminer'
make: *** [Makefile:808: all] Error 2

I have installed and updated all the libraries and tried to do the whole process over and over but I get the same end result.

Any thoughts on this issue?


Some more log lines would be helpful, but I assume it's the issue with GCC 10+ which needs the CFLAGS=-fcommon to compile the cgminer code.
jr. member
Activity: 50
Merit: 11
Hi all,

I cannot install the cgminer on my Ubuntu 20.04.5 LTS. I keep on getting this error message:

make[2]: *** [Makefile:999: cgminer-cgminer.o] Error 1
make[2]: Leaving directory '/home/user/bitcoin_testnet/cgminer'
make[1]: *** [Makefile:1894: all-recursive] Error 1
make[1]: Leaving directory '/home/user/bitcoin_testnet/cgminer'
make: *** [Makefile:808: all] Error 2

I have installed and updated all the libraries and tried to do the whole process over and over but I get the same end result.

Any thoughts on this issue?

hero member
Activity: 630
Merit: 731
Bitcoin g33k
And for this you have created a new forum account? Well then, congratulations on your virgin post  Grin
newbie
Activity: 1
Merit: 0
I guess the true test will be if you find a block, hopefully no-one else finds it at the same time and you can propogate the results out the rest of the network fast enough so that it recognizes your result before anyone elses.
Pages:
Jump to: