Bitcoin Forum
April 20, 2024, 12:39:39 AM *
News: Latest Bitcoin Core release: 26.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Pool mining: shares vs. solutions  (Read 759 times)
Proofer (OP)
Member
**
Offline Offline

Activity: 266
Merit: 36


View Profile
December 27, 2011, 03:06:06 AM
 #1

Is this right?

When mining as part of a pool, the miner tries to solve a block, i.e., to find a nonce value that makes the hash value less than that required by the current difficulty.  However, for each hash value that is calculated, the miner checks to see if it's less than the value required by (not sure of the terminology) the "share difficulty", which is much less difficult, and if it is, submits it to the pool as a share.  Then the miner continues to work on the block in order to find a solution.
1713573579
Hero Member
*
Offline Offline

Posts: 1713573579

View Profile Personal Message (Offline)

Ignore
1713573579
Reply with quote  #2

1713573579
Report to moderator
1713573579
Hero Member
*
Offline Offline

Posts: 1713573579

View Profile Personal Message (Offline)

Ignore
1713573579
Reply with quote  #2

1713573579
Report to moderator
1713573579
Hero Member
*
Offline Offline

Posts: 1713573579

View Profile Personal Message (Offline)

Ignore
1713573579
Reply with quote  #2

1713573579
Report to moderator
"Bitcoin: mining our own business since 2009" -- Pieter Wuille
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1713573579
Hero Member
*
Offline Offline

Posts: 1713573579

View Profile Personal Message (Offline)

Ignore
1713573579
Reply with quote  #2

1713573579
Report to moderator
1713573579
Hero Member
*
Offline Offline

Posts: 1713573579

View Profile Personal Message (Offline)

Ignore
1713573579
Reply with quote  #2

1713573579
Report to moderator
1713573579
Hero Member
*
Offline Offline

Posts: 1713573579

View Profile Personal Message (Offline)

Ignore
1713573579
Reply with quote  #2

1713573579
Report to moderator
DeathAndTaxes
Donator
Legendary
*
Offline Offline

Activity: 1218
Merit: 1079


Gerald Davis


View Profile
December 27, 2011, 03:08:47 AM
 #2

Yes.

Almost all pools use a difficulty of 1 for share difficulty.  

So your miner submits all shares who's hash is smaller than the target for difficulty 1.  The pool verifies those shares and if they are small enough to be the block solution submits it to the network.

Currently difficulty is roughly 1.16 million so it is 1.16 million times easier to find a share than a block solution.  Technically your miner doesn't even need to know what the difficulty is.  It simply submits everything smaller than target for difficulty 1 (that by definition includes shares smaller than target for diff 1.16 mil).
Proofer (OP)
Member
**
Offline Offline

Activity: 266
Merit: 36


View Profile
December 27, 2011, 03:15:38 AM
 #3

Yes.

Almost all pools use a difficulty of 1 for share difficulty.  

So your miner submits all shares who's hash is smaller than the target for difficulty 1.  The pool verifies those shares and if they are small enough to be the block solution submits it to the network.

Currently difficulty is roughly 1.16 million so it is 1.16 million times easier to find a share than a block solution.  Technically your miner doesn't even need to know what the difficulty is.  It simply submits everything smaller than target for difficulty 1 (that by definition includes shares smaller than target for diff 1.16 mil).

OK.  And after the submission the miner keeps on hashing the block and is stopped only by receipt of some kind of block-solved message coming in (or, in theory, by running out of nonce possibilities)?

That parenthetical raises another question:  does the nonce always have to start at 0 and increment?  Or could it start anywhere and wrap around?

Edit:  replaced period with question mark in first paragraph.
DeathAndTaxes
Donator
Legendary
*
Offline Offline

Activity: 1218
Merit: 1079


Gerald Davis


View Profile
December 27, 2011, 03:35:13 AM
 #4

Yes.

Almost all pools use a difficulty of 1 for share difficulty. 

So your miner submits all shares who's hash is smaller than the target for difficulty 1.  The pool verifies those shares and if they are small enough to be the block solution submits it to the network.

Currently difficulty is roughly 1.16 million so it is 1.16 million times easier to find a share than a block solution.  Technically your miner doesn't even need to know what the difficulty is.  It simply submits everything smaller than target for difficulty 1 (that by definition includes shares smaller than target for diff 1.16 mil).

OK.  And after the submission the miner keeps on hashing the block and is stopped only by receipt of some kind of block-solved message coming in (or, in theory, by running out of nonce possibilities)?

That parenthetical raises another question:  does the nonce always have to start at 0 and increment?  Or could it start anywhere and wrap around?

Edit:  replaced period with question mark in first paragraph.

yes that block solved message is called a "long poll".  The miner then clears its work queue and begins work on updated headers.

The miner will routinely run out of nonces.  Nonce range is 2^32.  A 1 GH miner will exaust the nonce range in ~4 seconds and thus need a continual supply of new work every 4 seconds to avoid going idle. 

Yes the miner could start at any nonce value.  Each nonce has equal chance of being a solution so there is no real reason to not start @ 0 and increment until max nonce.  Very Old miners stopped when they found a share in the nonce range but that is inefficient because each nonce range can have 0,1 or 2+ shares.  All current miners search entire nonce range and return any shares found.

jjzm
Newbie
*
Offline Offline

Activity: 31
Merit: 0



View Profile WWW
December 27, 2011, 06:09:09 AM
 #5

Hmm there's a lot to consider.
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!