PythonBitcoinMiner icon indicating copy to clipboard operation
PythonBitcoinMiner copied to clipboard

Connecting to Bitcoind RPC

Open precious8821 opened this issue 1 year ago • 2 comments

Is it possible to connect this miner to Bitcoind RPC for direct mining rather than a stratum solo mining pool?? If yes, how? I want to use custom extra nonce values, such as with your test python script. The problem with the stratum solo mining pool is that they partially presets the extra nonce value by them predefined the Extra Nonce 1, Coinb1 and coinb 2 values. They only allow for the Extra nonce 2 to be customized within the 'extra nonce' value I want to submit my own calculated Extra Nonce without any portion being predefined by the mining pool. The only way to accomplish this is by submitting the block directly to Bitcoin core's bitcoind RPC. The extra nonce i plan to use is calculated by using [ the network's global hash rate in hashes per second * 60 * X, with X being the minutes to mine a block. While Setting X to the average time its taken to mine the most recent blocks in the past day. ] / 4,294,967,296. That number will provide the estimated 'theoretical' extra nonces values passed until a block is mined. Assuming the mining pools and miners are starting the extra nonce at 1, increasing the extra nonce by one every time the 'nonce vales' are cycled through.

I want to test this out on the python miner, and then migrate over and use the same formula on an ASIC mining rig.

precious8821 avatar May 26 '25 17:05 precious8821

I see your concerns.However,the purposes of this program is easy for mining and with a little bit crypto currency education for all devices user(including phone) .If I tend to write the program for PC user,that might cause an inconvenience to the others.

But I would still like to make a bit adjustments in my free time with similar functions.Thanks for ur issue

HugoXOX3 avatar Jun 02 '25 12:06 HugoXOX3

Function is added in the latest relase

HugoXOX3 avatar Jun 14 '25 04:06 HugoXOX3