Can one node receive two transactions from the same user (doublespend)?

0

I'm learning how the blockchain works. I've read that when someone (say Alice) send twice a transaction to two different peoples (Bob and Charlie) such that Alice has only enough to pay Bob or Charlie, not both, then the first validated block containing of the two transactions will be accepted and the other will be rejected.

My question is : What happens if the two transactions Alice -> Bob AND Alice -> Charlie are sent to the same node and that node validates its block ? Is it possible ? If not, why ?

Mourad Qqch

Posted 2017-10-22T09:13:07.263

Reputation: 3

You should learn more about how bitcoin works. Your question does not have any sense.amaclin 2017-10-22T09:20:27.353

Well, I received an answer with sense. I'm learning but it's not that easy when english is my only source of information and not a languague I master.Mourad Qqch 2017-10-22T09:46:43.067

Do you have any formal ressource to share ?Mourad Qqch 2017-10-22T09:48:12.447

@MouradQqch I would suggest the book Mastering Bitcoin perhaps, especially if you have a bit of programming experience :)MeshCollider 2017-10-22T09:54:26.350

Answers

0

No that would not be valid, the node would reject the second transaction it saw, because it would know the UTXO was already spent by the first one. If a miner tries to include both in a block, that block would be invalid too for the same reason.

The exception is if the first transaction signalled to opt in to Replace-by-fee and the second transaction had a high enough fee to replace the first one. (BIP 125)

MeshCollider

Posted 2017-10-22T09:13:07.263

Reputation: 8 735