Bitcoin Forum
May 07, 2024, 11:53:55 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: The mining nonce - is everyone calculating the same hashes?  (Read 2007 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
1715126035
Hero Member
*
Offline Offline

Posts: 1715126035

View Profile Personal Message (Offline)

Ignore
1715126035
Reply with quote  #2

1715126035
Report to moderator
1715126035
Hero Member
*
Offline Offline

Posts: 1715126035

View Profile Personal Message (Offline)

Ignore
1715126035
Reply with quote  #2

1715126035
Report to moderator
1715126035
Hero Member
*
Offline Offline

Posts: 1715126035

View Profile Personal Message (Offline)

Ignore
1715126035
Reply with quote  #2

1715126035
Report to moderator
"I'm sure that in 20 years there will either be very large transaction volume or no volume." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715126035
Hero Member
*
Offline Offline

Posts: 1715126035

View Profile Personal Message (Offline)

Ignore
1715126035
Reply with quote  #2

1715126035
Report to moderator
1715126035
Hero Member
*
Offline Offline

Posts: 1715126035

View Profile Personal Message (Offline)

Ignore
1715126035
Reply with quote  #2

1715126035
Report to moderator
1715126035
Hero Member
*
Offline Offline

Posts: 1715126035

View Profile Personal Message (Offline)

Ignore
1715126035
Reply with quote  #2

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

Activity: 2142
Merit: 1009

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!