Bitcoin Forum
June 30, 2024, 04:49:14 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Do POW shares count as the diff requested or the diff of the found hash?  (Read 1138 times)
ron7684 (OP)
Member
**
Offline Offline

Activity: 90
Merit: 10


View Profile
October 01, 2015, 02:32:32 AM
 #1

If mining on 1024 diff and a 30m diff hash is found, does submitting this yield 1024 shares or 30m shares?

franky1
Legendary
*
Offline Offline

Activity: 4270
Merit: 4536



View Profile
October 01, 2015, 03:04:04 AM
Last edit: October 01, 2015, 03:20:47 AM by franky1
 #2

most mining pools operate like this...

in a period between blocks. pools counts up ALL hash submissions from users of that upcoming block and calls each submission a share.. when a block is finally solved the reward is then divided up so that the hard work is paid off..

for instance.
user 1: submits 5million hashes
user 2: submits 25million hashes
user 3: submits 20million hashes

total hashes = 50mill..
25btc reward / 50mill= 0.00000050 per share

user 1: gets 2.5btc for 5million hashes
user 2: gets 12.5btc for 25million hashes
user 3: gets 10btc for 20million hashes

it doesnt matter who solved the block with the winning hash.. its based on how many hashes(shares) were submitted

it doesnt matter what the difficulty is.. as all it means is that it will potentially take longer..
so if the example above took 5 minutes..

for instance of more hashes after 10 minutes.
user 1: submits 10million hashes
user 2: submits 50million hashes
user 3: submits 420million hashes

the rewards would work out the same cut per person after its divided up and shared out.
(rebuttal prevention: yes the numbers are low.. its called simple maths for simple demonstration)

I DO NOT TRADE OR ACT AS ESCROW ON THIS FORUM EVER.
Please do your own research & respect what is written here as both opinion & information gleaned from experience. many people replying with insults but no on-topic content substance, automatically are 'facepalmed' and yawned at
achow101
Staff
Legendary
*
Offline Offline

Activity: 3444
Merit: 6726


Just writing some code


View Profile WWW
October 01, 2015, 03:18:14 AM
 #3

If mining on 1024 diff and a 30m diff hash is found, does submitting this yield 1024 shares or 30m shares?

That yields one share. IIRC each submission that is valid under the pool difficulty counts as 1 share. Thus, it doesn't matter whether that submission is 30m diff or 1024, it just shows that you are doing work and eventually at some point someone will find a hash that is both under the pool diff and the network diff thus solving a block. That submission still only counts as one share.

Here is an example:
person A has been mining for a long time and has submitted 5 million shares.
person B just started mining and has submitted one share, which happened to be of a higher difficulty and is the one that found the block.

Does person B get paid more than person A because he actually found the block? No, he did less work, and is paid accordingly. His one submissions isn't worth more, and he doesn't get more shares because of the high difficulty of that submission.

ron7684 (OP)
Member
**
Offline Offline

Activity: 90
Merit: 10


View Profile
October 01, 2015, 06:43:57 AM
 #4

I understand the basics of how pools work, I'm asking a more in depth question. Please do not respond unless you know how POW works.

I'm talking about when a client has set a difficulty value so as to not spam the local network with actual diff1 shares, instead they can calculate 1024 diff hashes and transmit 1/1024 the amount of data for POW (of course only finding a solution 1/1024 as often). From what I know, a pool will treat 1024 shares at difficulty 1 and 1 share at difficulty 1024 in the same time frame as being from an equal speed miner.

I really want to know a definitive answer to whether an over-difficulty share is credited at the agreed difficulty or at the actual difficulty, I believe it would be at the agreed difficulty but this raises a possible exploit in my mind: What if miners would pass their high diff hashes to a separate proxy which reports that it is performing high diff hashes all the time, however this is not a miner at all and simply a relay for the hashes from other miners. Removing the rare occurrence of a high diff hash for a diff1024 miner should have a negligible effect on the perceived hashrate, reporting a more difficult hash less often could effectively create false hashrate because the proxy would receive more credit than the actual miner would have received.

This also opens up the possibility of a proxy connecting at various difficulties and reporting hashes on the highest possible connection.

Does the difficulty target get placed into the hash? This would eliminate the possibility of claiming that a high diff hash was found at high local diff while continuing to submit low diff hashes.

-ck
Legendary
*
Offline Offline

Activity: 4144
Merit: 1638


Ruu \o/


View Profile WWW
October 01, 2015, 01:45:14 PM
 #5

You only get paid at the diff the pool is asking you for. If the pool is asking you for 1024 diff shares, then both your 1024 diff share and your 30 million diff share only get paid at 1024 diff. There is no exploit possible with this mechanism. Furthermore there is no way to take work from one miner and channel it through a proxy to the pool as a different miner - work is unique to each miner and will only be accepted from that miner.

Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel
2% Fee Solo mining at solo.ckpool.org
-ck
ron7684 (OP)
Member
**
Offline Offline

Activity: 90
Merit: 10


View Profile
October 01, 2015, 09:19:48 PM
 #6

You only get paid at the diff the pool is asking you for. If the pool is asking you for 1024 diff shares, then both your 1024 diff share and your 30 million diff share only get paid at 1024 diff. There is no exploit possible with this mechanism. Furthermore there is no way to take work from one miner and channel it through a proxy to the pool as a different miner - work is unique to each miner and will only be accepted from that miner.

Thank you, this is the answer I was looking for.

What makes the work unique to each miner?

eleuthria
Legendary
*
Offline Offline

Activity: 1750
Merit: 1007



View Profile
October 02, 2015, 07:20:44 AM
 #7

You only get paid at the diff the pool is asking you for. If the pool is asking you for 1024 diff shares, then both your 1024 diff share and your 30 million diff share only get paid at 1024 diff. There is no exploit possible with this mechanism. Furthermore there is no way to take work from one miner and channel it through a proxy to the pool as a different miner - work is unique to each miner and will only be accepted from that miner.

Thank you, this is the answer I was looking for.

What makes the work unique to each miner?

With Stratum, each connection is assigned unique identifier that is inserted into the coinbase transaction.  This prevents two connections from hashing the exact same headers for the block since the coinbase will never be the same on two different connections.  

Since each connection has its own unique identifier, you couldn't route your hashes to different connections running at different difficulties, since the hash would only be valid on the connection assigned to that identifier.  It's similar to how you can't take a block solving share and submit it to your own wallet, since changing the destination wallet of the coinbase would change the hash, meaning it no longer would meet difficulty.


Obviously, this all assumes the stratum implementation was done properly.  AFAIK, no pool has ever been known to have screwed up this specific part of the stratum spec.

RIP BTC Guild, April 2011 - June 2015
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!