Bitcoin Forum
November 18, 2024, 01:41:39 AM *
News: Check out the artwork 1Dq created to commemorate this forum's 15th anniversary
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Bitcoin-qt and CGminer for solo mining  (Read 273 times)
Phillwilk (OP)
Newbie
*
Offline Offline

Activity: 12
Merit: 8


View Profile
December 16, 2020, 01:40:38 PM
Merited by ranochigo (2), ABCbits (1), o_solo_miner (1)
 #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
o_solo_miner
Legendary
*
Offline Offline

Activity: 2488
Merit: 1487


-> morgen, ist heute, schon gestern <-


View Profile
December 16, 2020, 01:49:44 PM
 #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.

from the creator of CGMiner http://solo.ckpool.org for Solominers
paused: passthrough for solo.ckpool.org => stratum+tcp://rfpool.org:3334
Phillwilk (OP)
Newbie
*
Offline Offline

Activity: 12
Merit: 8


View Profile
December 16, 2020, 01:54:54 PM
 #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
o_solo_miner
Legendary
*
Offline Offline

Activity: 2488
Merit: 1487


-> morgen, ist heute, schon gestern <-


View Profile
December 16, 2020, 01:59:55 PM
Last edit: December 16, 2020, 02:21:31 PM by o_solo_miner
Merited by ABCbits (2), ranochigo (2), nc50lc (1), Phillwilk (1)
 #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.

from the creator of CGMiner http://solo.ckpool.org for Solominers
paused: passthrough for solo.ckpool.org => stratum+tcp://rfpool.org:3334
Phillwilk (OP)
Newbie
*
Offline Offline

Activity: 12
Merit: 8


View Profile
December 16, 2020, 02:22:26 PM
 #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.
o_solo_miner
Legendary
*
Offline Offline

Activity: 2488
Merit: 1487


-> morgen, ist heute, schon gestern <-


View Profile
December 16, 2020, 02:29:45 PM
 #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).

from the creator of CGMiner http://solo.ckpool.org for Solominers
paused: passthrough for solo.ckpool.org => stratum+tcp://rfpool.org:3334
Phillwilk (OP)
Newbie
*
Offline Offline

Activity: 12
Merit: 8


View Profile
December 16, 2020, 02:50:29 PM
 #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.
Phillwilk (OP)
Newbie
*
Offline Offline

Activity: 12
Merit: 8


View Profile
December 16, 2020, 07: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.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!