2
1
I'm still new at trying to understand the entire idea surrounding the mining process.
I read the following:
When mining, you are given a set of data to perform hashes on. As you noted, this is done by manipulating the nonce and hashing each time the nonce changes. What you really want to do is check all possible nonces. Even if you've already found a "golden nonce" (one which gives you a hash starting with 32 zeros), you need to keep searching for more. There could be anywhere between 0 and 2^32 solutions to a given block of work, so it is in your best interest to keep looking for more. Hence, there are no stop conditions in the sense of when to stop running your algorithm, other than having exhausted all possible nonces (at which point, you would get more work).
This confused me, because I thought that once you found a golden nonce, you can broadcast that to the network and move on. Why would you continue to check for more? Is it because if you let's say found 5 golden nonces and broadcasted all of them as you found them, you'd have a higher probability that the next block would be building off the one you found? Adding onto that, if many people find valid nonces to a block, how is the winner of the reward, and which gets included in the main chain, determined?
This doesn't address his question at all. You seem to be answering something totally irrelevant. – Mr.Nobody – 2017-07-12T07:54:48.493
The context of the question is a post about FPGA software. Source's OP is wondering why there's no stop condition when searching valid nonces. That's because the firmware is designed to run through all nonces in search of "difficulty 1 shares", not valid block headers since the FPGA has no notion of what is the current difficulty. As valid block headers are difficulty 1 shares too, sending them to the pool server will trigger the broadcast of a block and the sending of new work to the FPGA. – alcio – 2017-07-12T08:33:43.627
This looks like the right answer to me. – Pieter Wuille – 2017-07-12T16:44:08.193
Me too. The "best interest" part is about proving the amount of hash plower you are supplying to the pool, and not about finding the next block. – Jestin – 2017-07-13T18:08:18.417