Bitcoin Forum

Other => Beginners & Help => Topic started by: symbian on August 01, 2011, 01:12:43 PM



Title: Questoin about getwork, shares and solving block.
Post by: symbian on August 01, 2011, 01:12:43 PM
What is shares in mining? Why getwork response doesn't solve the block directly and only one getwork response from many solves the block? Are they additive or something?


Title: Re: Questoin about getwork, shares and solving block.
Post by: kokjo on August 01, 2011, 01:30:59 PM
What is shares in mining? Why getwork response doesn't solve the block directly and only one getwork response from many solves the block? Are they additive or something?
getworks are only proof that you have tryed to solve a block.
take is as a lottery:
10000 tickets, and every ticker have a number.
if the number on the ticker is 1, then jackpot! you won.
if the number on the ticker is less then 100, then its only proof that you have tryed.


Title: Re: Questoin about getwork, shares and solving block.
Post by: symbian on August 01, 2011, 01:42:15 PM
Some answers are here (https://bitcointalk.org/index.php?topic=3076.msg43060#msg43060), but I don't understand how shares processed after when they are submitted? And why do we need collect shares which doesn't match target?


Title: Re: Questoin about getwork, shares and solving block.
Post by: kokjo on August 01, 2011, 01:49:22 PM
Quote
Some answers are here (https://bitcointalk.org/index.php?topic=3076.msg43060#msg43060), but I don't understand how shares processed after when they are submitted?
shares processed by checking if they are valid, and then saved.
Quote
And why do we need collect shares which doesn't match target?
no/yes.
no: they does not help the creation of blocks.
yes: if you dont store them, you can't check if they are used again, and there by frauding you to more shares.



Title: Re: Questoin about getwork, shares and solving block.
Post by: symbian on August 01, 2011, 01:56:00 PM
So share is a hash compared not to target but to other number (increased with nonce 2^32 number of hashes) with higher probability to match?


Title: Re: Questoin about getwork, shares and solving block.
Post by: kokjo on August 01, 2011, 03:44:43 PM
So share is a hash compared not to target but to other number (increased with nonce 2^32 number of hashes) with higher probability to match?
yes.