6
I read What exactly is Mining? and What are bitcoin miners really solving?, but was left wondering: What happens if a new transaction comes in, whilst mining? To answer that, I found Do transactions affect the discovery of a block?, which, if I understand correctly, says that the mining must "start over" (but the chances of finding the "nonce" on the first attempt are about the same as any subsequent attempts, so there's no "loss of work").
But, what about network latency? It must take a finite amount of time for a new transaction to reach miners—so what happens if a miner solves a block, but then receives a transaction timestamped before the block was solved?
I see, thanks. One follow-up question though, to make sure I understand this. Does that mean that a miner may, theoretically, solve a block without including any new transactions?—that is, the same set of transactions as the previous block? (As I understand, the new block must include the hash of the previous block, so it's just as difficult a problem.) If so, is the only reason this doesn't happen, that miners wouldn't collect transaction fees by doing so? – Andrew Cheong – 2014-02-25T07:32:43.093
1@acheong: Yes, indeed, a block with no transactions is still valid. There was a previous question addressing this but I can't conveniently find it right now. – Nate Eldredge – 2014-02-25T07:37:47.560