Bitcoin Forum
December 10, 2016, 07:15:25 AM *
News: Latest stable version of Bitcoin Core: 0.13.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: The mining nonce - is everyone calculating the same hashes?  (Read 1787 times)
adhoc
Newbie
*
Offline Offline

Activity: 7


View Profile
January 13, 2012, 11:37:35 AM
 #1

With regards to the nonce used for mining, all information I can find on it seems to indicate that to mine a block you set the nonce to 0, and then continually hash-then-increment until you find a hash that is below the target. If all miners are following this algorithm, doesn't that mean that everyone hashes a block with the nonce at 0, then 1, etc meaning if two people have the same block they are essentially just duplicating effort? If this is the case, wouldn't it be better to assign the nonce to a random value either as the initialization value or on every attempt?

Thanks
1481354125
Hero Member
*
Offline Offline

Posts: 1481354125

View Profile Personal Message (Offline)

Ignore
1481354125
Reply with quote  #2

1481354125
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1481354125
Hero Member
*
Offline Offline

Posts: 1481354125

View Profile Personal Message (Offline)

Ignore
1481354125
Reply with quote  #2

1481354125
Report to moderator
Come-from-Beyond
Legendary
*
Offline Offline

Activity: 1414

Newbie


View Profile
January 13, 2012, 12:05:16 PM
 #2

Everyone who mines solo has (almost) unique hash coz very 1st transaction is generation of 50 coins to his address which is unique as well.

Everyone who mines on a pool has (almost) unique hash coz pool software gives unique work to every miner.

So there is no need to assign nonce to a random value. It doesn't change ur chance to find a good nonce.
slush
Legendary
*
Offline Offline

Activity: 1358



View Profile WWW
January 13, 2012, 12:09:41 PM
 #3

Mining jobs do not differ only in the nonce, read about merkle root hash and nExtraNonce on the bitcoin.it wiki...

Eveofwar
Sr. Member
****
Offline Offline

Activity: 406


View Profile
January 13, 2012, 12:12:06 PM
 #4

Maybe DeathAndTaxes' explanation in this thread helps some.

https://bitcointalk.org/index.php?topic=58497.0
adhoc
Newbie
*
Offline Offline

Activity: 7


View Profile
January 13, 2012, 12:22:07 PM
 #5

ah that's a good point, I forgot about the generation transaction - thanks
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!