Bitcoin Forum

Other => Beginners & Help => Topic started by: thezerg on April 13, 2012, 05:09:27 PM



Title: Protocol question: Giga hashes per second but nonce only 32-bit...
Post by: thezerg on April 13, 2012, 05:09:27 PM
How does that work?  Maybe if you run out of numbers in the nonce you get a new time?

Thx!
thezerg


Title: Re: Protocol question: Giga hashes per second but nonce only 32-bit...
Post by: DeathAndTaxes on April 13, 2012, 05:13:53 PM
How does that work?  Maybe if you run out of numbers in the nonce you get a new time?

Thx!
thezerg

Change "something". A bitcoin block header consists of:
Code:
Version 
Previous block hash
Merkle root
Timestamp
"Bits" (target in compact form)
Nonce (32-bit number)

There is no requirement to change the block header a particular way to attempt another hash but usually when you exhaust the nonce range you either

1) change extra nonce value in coinbase which results in a new merkle tree hash
2) change the timestamp

Pools usually do both to improve efficiency.

Each worker has a different merkle root and the pool allows the worker locally to increment time (n-time-rolling).