Let's imagine that I've two pretty same transactions - the only difference is their to
field. The first transaction - A
, has 0x1111....
and the second one - B
, has 0x22222....
in the to
field.
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
A
at first and those, who have receivedB
. So, depending on where "our" miner are -A
orB
will 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 A
.
- I'm sending
A
- Waiting for e.g. 2 seconds
- sending
B
Does 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!