Bitcoin Forum

Bitcoin => Mining software (miners) => Topic started by: inh on June 15, 2011, 06:44:47 AM



Title: What makes miners work unique?
Post by: inh on June 15, 2011, 06:44:47 AM
When pooled mining, I'm assuming every worker is using the same pool address for the reward, so thats a constant. Is the only thing that makes each miners hashes unique the timestamp + the nonce?


Title: Re: What makes miners work unique?
Post by: Kiv on June 16, 2011, 12:08:13 AM
There are actually two nonces in mining. One is the 4-byte nonce that each miner chews through from 0 - 2^32. The other is called extraNonce and is inside the first transaction of the block, which is the generation transaction.

My understanding is that whenever the miner requests work from the server, the server will change the extraNonce in the generation transaction so that that miner's work will be unique.

If you look in the first transaction for a block (http://blockexplorer.com/tx/f35b4ca17d0668ec84bcbb2b1898908db1b226dd84cd5f08f946801af2b7c3e3) you can see the extraNonce listed under ScriptSig.

The nonce the miner found is in the block itself (http://blockexplorer.com/block/00000000000000ea0f1fdc4b539da75ff5831eb0f380d6cbc1fc593ab854131f) and in this case is 1019732465.