Bitcoin Forum
November 07, 2024, 12:16:50 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: The mining nonce - is everyone calculating the same hashes?  (Read 2025 times)
adhoc (OP)
Newbie
*
Offline Offline

Activity: 7
Merit: 0


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
Come-from-Beyond
Legendary
*
Offline Offline

Activity: 2142
Merit: 1010

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: 1386
Merit: 1097



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
Merit: 250


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 (OP)
Newbie
*
Offline Offline

Activity: 7
Merit: 0


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:  

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