Bitcoin Forum

Alternate cryptocurrencies => Mining (Altcoins) => Topic started by: cnmcdee on January 02, 2018, 08:02:19 PM



Title: Faking Hash Rates..
Post by: cnmcdee on January 02, 2018, 08:02:19 PM
In the following code segment from blake2s.cu (ccminer source code - cuda C)

uint32_t vhashcpu[8];
         uint32_t nonce = sph_bswap32(resNonces[1]);
         be32enc(&endiandata[19], nonce);
         blake2s_hash(vhashcpu, endiandata);

         *hashes_done = pdata[19] - first_nonce + throughput;

How do pool miners prevent coders from modifying the source code and recompiling ccminer so they fake the hash count and get an unequal share of the winning pools??  This would apply in pretty much all the algos...?



Title: Re: Faking Hash Rates..
Post by: VRobb on January 02, 2018, 08:06:59 PM
You do know that pools verify the share sent in, right?  And subsequently calculate the share rate to the pool... ::)


Title: Re: Faking Hash Rates..
Post by: os2sam on January 02, 2018, 08:12:34 PM
How do pool miners prevent coders from modifying the source code and recompiling ccminer so they fake the hash count and get an unequal share of the winning pools??  This would apply in pretty much all the algos...?

Pools pay per the amount of shares you submit.  They have no idea what the hash rate of your device nor what your software is reporting to you, nor do they care.

This does not pertain to all algorithms.  Nobody mines Bitcoin with GPU's anymore and when we did we would never use an nVidia GPU as it would have been a waste of electricity.


Title: Re: Faking Hash Rates..
Post by: cnmcdee on January 02, 2018, 08:41:55 PM
Can  you explain shares in metric terms


Title: Re: Faking Hash Rates..
Post by: fanatic26 on January 02, 2018, 10:44:53 PM
If you tell someone you are giving them a $10 bill, then hand them a $5 they will do their own verification by looking at the bill and realizing something isnt right. The pool isnt just going to accept whatever razndom share number people want to throw at it.


Title: Re: Faking Hash Rates..
Post by: malthrax on January 02, 2018, 10:56:10 PM
In the following code segment from blake2s.cu (ccminer source code - cuda C)

uint32_t vhashcpu[8];
         uint32_t nonce = sph_bswap32(resNonces[1]);
         be32enc(&endiandata[19], nonce);
         blake2s_hash(vhashcpu, endiandata);

         *hashes_done = pdata[19] - first_nonce + throughput;

How do pool miners prevent coders from modifying the source code and recompiling ccminer so they fake the hash count and get an unequal share of the winning pools??  This would apply in pretty much all the algos...?



Because miners don't get paid for their hash rate, they get paid for submitting valid shares.

However, unscrupulous miner authors could tweak that value and voila! my miner is 30% better than stock, send me phat ETHs!!!


Title: Re: Faking Hash Rates..
Post by: malthrax on January 02, 2018, 10:57:24 PM
Can  you explain shares in metric terms

http://lmgtfy.com/?q=what+is+a+share+in+crypto+mining