Author

Topic: Mannually send the block template (Read 67 times)

member
Activity: 259
Merit: 85
So many numbers and so little time
January 05, 2025, 04:35:17 PM
#4
Yeah, I think for what you want to do you'll just need to set-up bitcoincore to run off of Testnet4 wait for it to sync then configure the ckpool code to run on your bitcoincore.

Once thats done you would connect your miner locally "stratum+tcp://localpoolIPaddress:localpoolport" to your ckpool instance, in theory if its all been configured correctly it would then mine to TN4.

Its probably a bit more complicated to set-up than that, but I'm sure you'll work it out.
legendary
Activity: 1512
Merit: 7340
Farewell, Leo
January 05, 2025, 03:00:02 PM
#3
Got it. So there's no particular program that can do exactly what I want, and I'll have to meddle with pool software.

My need is to mine in testnet4. The moment an ASIC block is mined, I need to mine with difficulty=1 as soon as possible, and send the mined block into the network as early as possible. That means, my node notifies a program to work on and immediately broadcast solution, when it is found.
member
Activity: 259
Merit: 85
So many numbers and so little time
January 03, 2025, 08:30:47 AM
#2
AFAIK, most miners wont connect to bitcoin core GBT directly as they all expect to use stratum protocol these days.

If you want your own dedicated local mining you could run a local pool software such as ckpool and connect to it via stratum.

There are modded versions of CGMiner that allow direct GBT connections to bitcoincore, I've done this myself using a CompacF like miner and a modded version of CGMiner 4.12.1 see this thread https://bitcointalksearch.org/topic/guide-solo-mine-testnet-bitcoins-with-cgminer-bitcoin-core-and-a-compac-f-5415335

However I'm uncertain if that can be done through the Anminer software as that's more self contained.

Certainly running your own local pool would be the best option to keep it a stratum based connection.

Have a look at ckpool https://bitbucket.org/ckolivas/ckpool-solo/src/solobtc/
legendary
Activity: 1512
Merit: 7340
Farewell, Leo
January 03, 2025, 02:15:41 AM
#1
I'm testing a few things. Is there a way to manually send the block template (from Bitcoin Core's getblocktemplate) to my miner (Antminer) without going through pool software?

Example:

- I run getblocktemplate, send the json to my miner.
- My miner works on this template.
- When block is found, miner sends the block to me.
Jump to: