5
I'm a bit new to the bitcoin system, so I apologize if this is a "noob" question.
A user attempts to take all the unverified transactions it knows about and aggregate them in a chain block. The same applies to all the users world wide - they all attempt to aggregate all the unverified transactions into a block chain with a 1 success every 10 minutes on a global scale rate
But - I imagine that when all the devices are trying to do this, all the devices have a slightly different list of unverified transactions, since it takes a while for a transaction to propagate to all the devices world-wide
So let's say device A and device B both create a block at the same time, when some transactions in A don't appear in B and vise-versa. Then, more block chains are created and after some time the shorter one is discarded - all the transactions which appeared as verified in the shorter block chain now become unverified again?
If this is the case, what happens to the transaction fees & the 25 bitcoin award given to the guy who created the "bad" block?
I mean, fine - the 25 bitcoin award could theoretically stay with the guy who created the block, since he did do the work, but the transaction fee? It would need to be paid to the next guy who verifies the transaction, shouldn't it?
Or in this case, would the user need to pay 2 transaction fees?
But don't the fees & reward in-fact generate a new transaction which is then propagated into the system for new verification? How does the system know to discard them if the block in the "loosing" chain is discarded? – Gil Moshayof – 2014-02-14T06:42:12.620
1No fees & rewards don't generate new transactions by themselves. Rewards are only spendable after a block has been buried 100 (i think) blocks deep. So there can't be any transactions touching the reward yet. Any other transactions can still go through on the next block as long as there is no conflict (double spend). – Jannes – 2014-02-14T10:16:38.973
Another way to think about it is: blocks are atomic, and include in them the block-reward, and sweep of transaction-fees, to the miner. The only thing that happens later is the decision to build on it, or not. If it (and its successors) are built on, it wins. If it wins, all those transactions/fees/rewards are spendable by their new owners, without any other steps necessary. They just refer-back to that block to use the funds.
And if it loses, there's nothing extra to undo. Just leaving it out of the winning chain already means it, and all its contents, are irrelevant. – Quizzical – 2014-02-15T00:07:32.843