Let's imagine that I've two pretty same transactions - the only difference is their
to field. The first transaction -
0x1111.... and the second one -
0x22222.... in the
If I'm sending them at the same time - what will happen? I see two different ways:
The "world" will be split in two parts: those nodes, who have received
Aat first and those, who have received
B. So, depending on where "our" miner are -
Bwill be mined, 50 / 50.
Ethereum nodes allows replacing transactions if they are not comfirmed. So, if a transaction is not mined yet, and node receives a new one - it replaces.
And the second question. Let's set the
gasPrice for the
B twice bigger than in the
- I'm sending
- Waiting for e.g. 2 seconds
B have any chances to win this race? I mean, are there such rule like: "If there is a transaction from some address in tx pool, but there is another transaction from the same address and it's more expensive - first transaction should be replaced with the second one"
Thanks in advance!