Questions tagged [nonce]

should be used for questions related to the nonce used in bitcoin block

The "nonce" in a bitcoin block is a 32-bit (4-byte) field whose value is adjusted by miners so that the hash of the block will be less than or equal to the current target of the network.

The coinbase transaction is also updated during mining. The changes to the coinbase transaction form the "extranonce". This is needed since the 32-bit search space of the nonce is too little.

Any change to the block data (such as the nonce) will make the block hash completely different. Since it is believed infeasible to predict which combination of bits will result in the right hash, many different nonce values are tried, and the hash is recomputed for each value until a hash less than or equal to the current target of the network is found. The target required is also represented as the difficulty, where a higher difficulty represents a lower target. As this iterative calculation requires time and resources, the presentation of the block with the correct nonce value constitutes proof of work.

https://en.bitcoin.it/wiki/Nonce

123 questions
2
votes
1 answer

What is the largest golden nonce found?

With all the stats and metrics out there I was surprised I could not find this out. Has anyone ever determined the highest nonce in a block?
Corbin
  • 275
  • 2
  • 9
1
vote
1 answer

How to read a block nonce in command line?

I need to know how to read a block header in particular its nonce. How can I read a block nonce? what command line is used?
user153465
  • 291
  • 1
  • 10
1
vote
2 answers

Is the nonce in Bitcoin the answer to the puzzle from the previous block?

If, in Bitcoin, the nonce is included in the header of the proposed block, is it the answer to the puzzle from the previous block?
MG2
1
vote
1 answer

How does a miner know which nonce to start with ?

Pretty straightforward question : When a miner is trying to find a 18-leading-zeros hash, does it always start with a nonce at zero ? I suppose it doesn't, because other miners in the world may have found out that the first 1000 nonces won't give a…
1
vote
1 answer

Finding nonce resulting in more zeros than the target

This might be a wrong question(I am new to understanding bitcoin details). But I want to ask this: What happens if one node finds nonce value that results in way more leading zeros than expected by the target?
1
vote
1 answer

Is extranonce sometimes necessary for blocking?

Is extranonce ever necessary to find a block, e.g., in cases where exhausting the regular nonce range fails to block? Is this the rationale behind extranonce?
Geremia
  • 4,626
  • 5
  • 38
  • 75
1
vote
4 answers

What value should nonce be when mining bitcoin ?

When the miner program start, the value of nonce is zero or a random number? Which of them is better?
jiahmark
  • 29
  • 2
1
vote
3 answers

Why is a nonce enough to be 64 bits?

As far as I can understand the resulting hash should start with difficulty number of zeroes before a block can be mined. That is: H(HashOfPreviosBlock + nonce) < target but why is a 64 bit number guaranteed to generate