iceland2k14 / solominer

Solo Mining in python for BTC Block Reward, Pure luck
MIT License
80 stars 31 forks source link

Why are there no statistics? #6

Open anna4988 opened 2 years ago

anna4988 commented 2 years ago

Why are there no statistics on http://solo.ckpool.org/users/address-btc

anna4988 commented 2 years ago

Is this normal or not?

papacrouz commented 2 years ago

Hi, Yes it is normal. I've take a look at the code and as i can see is that the miner is not doesn't send any info to pool regarding the mining process, the connection with the ckpool is at the begin in order to request new data witch will be used to construct the blockheader, then the miner is trying to find a hash smaller than target and if its found the miner sends the solved work to pool. That means the statics will be available only if you solve a block.

lolzminer123 commented 1 year ago

just a question i recieved a message with a new hash instead of new block found why did i get this ?

lolzminer123 commented 1 year ago

New hash: 00000002ce1e6670303e8dea44bf54b3e5a3e5509b70c0cad1062e342b33c27e for block 766806

GitHappens2Me commented 1 year ago

The script logs all calculated hashes which start with atleast 7 zeroes. So this is one of your "closest" hashes. Keep in mind, that you need atleast 19 zeroes at the moment for a valid block.

You can change the logging behaviour to also include hashes with less zeroes by changing the following line in the code:

if hash.startswith('0000000'): logg('[*] New hash: {} for block {}'.format(hash, work_on+1))

For example: If you change the '0000000' to '000', ever hash with atleast 3 leading zeroes is logged.