0
1
For example, I pay a cup of coffee with bitcoin, and later remove that transaction from the pending block that is not yet on chain. After 10 mins, I successfully and luckily solve the PoW problem, and broadcast the modified block to everyone as well as append it to the blockchain.
Is the scenario above possible? If it is, how is it prevented?
thank you, but how could another miner can still include it at later time? I thought that the transaction that I bought coffee is already on the chain (it's modified transaction, but others do not know it's fake) so they consider the transaction already validated and won't try to include it again later. Or there's a mechanism that can help others detect the modified transaction which is already on chain, finding that its fake? If no such mechanism, does it mean that I cheat successfully(i.e. modify the transaction and push onto the blockchain, and no one knows, thus I can do double spending) – Ren – 2017-10-15T12:33:55.370
1I mean that the original transaction that paid for the coffee can always be included in a later block by another miner unless a double-spend was done. – Pieter Wuille – 2017-10-15T12:37:16.900