|
Title: Bitcoin-qt and CGminer for solo mining Post by: Phillwilk on December 16, 2020, 01:40:38 PM 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 Title: Re: Bitcoin-qt and CGminer for solo mining Post by: o_solo_miner on December 16, 2020, 01:49:44 PM 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. Title: Re: Bitcoin-qt and CGminer for solo mining Post by: Phillwilk on December 16, 2020, 01:54:54 PM 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 Title: Re: Bitcoin-qt and CGminer for solo mining Post by: o_solo_miner on December 16, 2020, 01:59:55 PM 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] 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. Title: Re: Bitcoin-qt and CGminer for solo mining Post by: Phillwilk on December 16, 2020, 02:22:26 PM 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. Title: Re: Bitcoin-qt and CGminer for solo mining Post by: o_solo_miner on December 16, 2020, 02:29:45 PM 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). Title: Re: Bitcoin-qt and CGminer for solo mining Post by: Phillwilk on December 16, 2020, 02:50:29 PM Cheers for the help,
I'll try and sort it later tonight, new to Linux so will have to learn how to do it. Title: Re: Bitcoin-qt and CGminer for solo mining Post by: Phillwilk on December 16, 2020, 07:22:15 PM 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. |