Author

Topic: Bitcoin-qt and CGminer for solo mining (Read 279 times)

newbie
Activity: 12
Merit: 8
December 16, 2020, 02:22:15 PM
#8
Cheers for the help,

I'll try and sort it later tonight, new to Linux so will have to learn  how to do it.

All sorted now, cheers for the help pal.
newbie
Activity: 12
Merit: 8
December 16, 2020, 09:50:29 AM
#7
Cheers for the help,

I'll try and sort it later tonight, new to Linux so will have to learn  how to do it.
legendary
Activity: 2483
Merit: 1482
-> morgen, ist heute, schon gestern <-
December 16, 2020, 09:29:45 AM
#6
copy the folder of core 0.19.1 to /home/username/bitcoin-0.19.1.
then change to that directory cd /home/username/bitcoin-019.1/bin and start ./bitcoin-qt


Not sure where I'm going wrong but I've extracted v 0.19.1 from the GitHub zip but there Is no startup script in the downloaded files.

You can download from core as well: https://bitcoin.org/en/download
those where precompiled binary.
Or you compile yourself and copy to the folder.
There is a README about building core in the git files (DOCS).
newbie
Activity: 12
Merit: 8
December 16, 2020, 09:22:26 AM
#5
copy the folder of core 0.19.1 to /home/username/bitcoin-0.19.1.
then change to that directory cd /home/username/bitcoin-019.1/bin and start ./bitcoin-qt


Not sure where I'm going wrong but I've extracted v 0.19.1 from the GitHub zip but there Is no startup script in the downloaded files.
legendary
Activity: 2483
Merit: 1482
-> morgen, ist heute, schon gestern <-
December 16, 2020, 08:59:55 AM
#4
If your version of core 0.20.1 is stored under /home/username/bitcoin-0.20.1
you simply copy the folder of core 0.19.1 to /home/username/bitcoin-0.19.1.
then change to that directory cd /home/username/bitcoin-019.1/bin and start ./bitcoin-qt
The data is stored under /home/username/.bitcoin and will be used by both version.
So you are able to switch between those two version.

CGMiner will then look like that:
Code:
cgminer version 4.11.1 - Started: [2020-12-16 09:48:43.364]
----------------------------------------------------------------------------------------------------
 (5s):33.02G (1m):32.80G (5m):32.89G (15m):32.83G (avg):32.74Gh/s
 A:0  R:0  HW:0  WU:457.5/m | ST: 1  SS: 0  NB: 32  LW: 161693  GF: 0  RF: 0
 Connected to (null) diff 18.7T without LP as user mainnetuser
 Block: 875795b7...  Diff:18.7T  Started: [15:15:06.091]  Best share: 1.07K
----------------------------------------------------------------------------------------------------
 [U]SB management [P]ool management [S]ettings [D]isplay options [Q]uit
 0: LIN 0       : 270MHz  37C             | 30.05G / 32.75Gh/s WU:457.6/m A:0 R:0 HW:0
----------------------------------------------------------------------------------------------------
 [2020-12-16 15:17:13.930] Solo mining to valid address: btc-address
 [2020-12-16 15:17:18.932] Solo mining to valid address: btc-address
 [2020-12-16 15:17:23.971] Solo mining to valid address: btc-address
 [2020-12-16 15:17:28.929] Solo mining to valid address: btc-address
 [2020-12-16 15:17:33.930] Solo mining to valid address: btc-address

Do not try that with core version older 0.18.0 because that will not work, or result in a reorganisation of block and
this will take some time.
newbie
Activity: 12
Merit: 8
December 16, 2020, 08:54:54 AM
#3
Cheers for the reply,

I'm new to Debian and could do with a example of how to downgrade the Bitcoin-qt software, is it difficult or is the a basic tutorial out there?

Cheers
legendary
Activity: 2483
Merit: 1482
-> morgen, ist heute, schon gestern <-
December 16, 2020, 08:49:44 AM
#2
Quote
/usr/src/cgminer/cgminer -o http://localhost:8332 -u 12345 -p 12345 --btc-address bc1qgh7q8kceh4289xehdy8mmjfsp74rzg4fsemtj5

I get the following response,

Pool 0 JSON failed to decode GBT

Thats right!
The new Core Version did removed one gbt flag and there for cgminer 4.11.1 is not able to decode the data any more.
Use Core Version 0.19.xx and it will work fine.
newbie
Activity: 12
Merit: 8
December 16, 2020, 08:40:38 AM
#1
I'm attempting to set up CGminer using my own full node for fun / education / lottery, I know the chances are well below zero but figured I'd give it a go.

Software

Bitcoin-qt v 0.20.1
CGminer v 4.11.1

OS

Debian 5.4.79-v7l+ armv7l
 When running using the below command for CK pool everything works fine,

/usr/src/cgminer/cgminer -o stratum+tcp://solo.ckpool.org:3333 -u bc1qgh7q8kceh4289xehdy8mmjfsp74rzg4fsemtj5 -p x

When run with the below command for solo mining,

/usr/src/cgminer/cgminer -o http://localhost:8332 -u 12345 -p 12345 --btc-address bc1qgh7q8kceh4289xehdy8mmjfsp74rzg4fsemtj5

I get the following response,

Pool 0 JSON failed to decode GBT

I have tested the getblockinfo with the segwit rule via bitcoin-cli and it appears to be working fine, this leads me to believe it is either a config or version issue but I can't figure it out.

Any help appreciated

Phil
Jump to: