0

Is it possible to have different nonce which are satisfying the same condition of having let's say 4 leading zeroes in the hash?

Is it possible that one node suggests 89123 nonce and other node suggests 30221 nonce, both leading to a valid (but different hashes) leading to 4 zeroes?

Does nonce calculation always start from 0 or 1 up to infinity?

1
  • Nonce is 32 bits and can't get anywhere near infinity. And extranonce (in coinbase), which is what modern miners actually need to vary to find a winning block, although larger is still finite. Commented Feb 18, 2022 at 4:53

2 Answers 2

2

Is it possible that one node suggests 89123 nonce and other node suggests 30221 nonce, both leading to a valid (but different hashes) leading to 4 zeroes?

This is only possible if something has gone horribly wrong. Either these two nodes are cooperating or they aren't cooperating. Let's consider the two cases:

  1. If the two nodes aren't cooperating, why would they mine blocks that differ only in the nonce? That would mean both nodes were trying to deliver the block reward and the transaction fees to the same wallet even though they're not cooperating. That makes no sense.

  2. If the two nodes are cooperating, why would they both be working on the same block? That would require them to divide the nonce space, which is extraordinarily inefficient because realistic miners go through all nonces in a tiny fraction of a second. Every sensible form of cooperative mining ensures that no two nodes are working on the same block so each node can use the full nonce space without duplicating work.

So this should never happen. If two blocks for the same height get mined at about the same time, they will be blocks that differ in more than just the nonce.

1

Yes, I believe there can be many nonce values that produce a hash whose numeric value is less than the current target. Particularly as other data can be varied too. The probability obviously depends on the target.

The order in which a miner tries nonce values is not prescribed but is any order chosen by the miner.

See also

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.