<p>It is not clear what you mean with "show up on the network". I will assume that you mean "included in the blockchain" rather than "submitted to the network".</p>

<h2>Transactions are spread peer to peer.</h2>

<p>When a users sends a transaction, he transmits it to all the peers he is connected to. All these peers will then propagate it to their peers, and the recipients will repeat so again until all nodes in the network have received the transmission.</p>

<h2>An exaggerated example</h2>

<p>Let's imagine the following (hypothetic) situation:<br>
<strong>A</strong> has only one peer, who in turn only has only one other peer. Let's say A is connected to the network in a very long chain of weakly connected nodes, which then at some point leads to the "well-connected network".<br>
On the other hand <strong>C</strong> has ten peers, of which one is very well connected such as a mining pool operator.</p>

<p>Now, when <strong>A</strong> sends his transaction, it is transmitted to one other node in the network, then a second is notified, in the next step only a third. Obviously, it will take some time until the transaction will spread to the whole network. On the other hand, when <strong>C</strong> sends his transaction, it is immediately received by 10 other nodes. Each of those sends it to ten other nodes, the mining pool might even send it to hundreds. The network will be notified very quickly of that transaction.</p>

<h2>We can see different propagation times, but the effect isn't that huge</h2>

<p>According to <a href="http://bitcoinstats.com/network/propagation/" rel="nofollow">BitcoinStats</a>, it takes about 0.651 seconds for a transaction to be seen by 50% of the network, and about 2.761 seconds to be seen by 90% of the network.<br>
Also, the above example is exaggerated: Usually, every node will try to connect to several nodes. However, the effect that some transactions will spread faster due to being submitted to well-connected nodes still exists. If a miner finds a block and had already received the transaction of <strong>C</strong> but not <strong>A</strong>'s. <strong>C</strong>'s might be included in a block before <strong>A</strong>'s transaction. However, the window is pretty small, since the block interval is much bigger than the propagation time.<br>
The effect would be especially pronounced, if <strong>A</strong>'s transaction didn't include a transaction fee, or was non-standard, and therefore not propagated by all nodes.</p>

CC BY-SA 3.0
2015-02-22T18:30:04.823Z
So it is possible then if C is connected to 'better'/more nodes. Is there anyway a normal user like me can connect to 'well connected'/more nodes other than the standard 8?
kev
CC BY-SA 3.0
2015-02-22T23:32:47.267Z
We are talking about a fraction of a second advantage. If you would perhaps explain why you are worried, I could perhaps give a better answer. AFAIK you are limited to 8 outbound connections, however, if you enable port forwarding, you can maintain more connections. The limit used to be 125 connections, but I am not sure if that is still the case.
Murch
CC BY-SA 3.0
2015-02-23T03:21:07.280Z
Thank you Murch. I am not worried I'm just trying to learn in detail how the transactions enter the network(for a personal reason). One more question. Do all 8 nodes(or however many) get the transaction details at the same EXACT time or does it take some time for all 8 to get it? (I noticed in your answer you said "immediately received by 10 other nodes". Just want to clarify if the 10 receive at same time or is there a time difference (even if it is a fraction of a second)
kev
CC BY-SA 3.0
2015-02-23T07:53:24.933Z
I've read up on the communication protocol a bit more. It appears that after a node has verified a transaction, it sends an "inventory message" to its peers. The inventory message contains a hash of the transaction, and the peers can then request the transaction with a "getdata message" if they don't have it already. So, the peers don't get the information at the same time, but rather as they request it, and since there is some back and forth included, nodes with a higher latency will probably get it (some hundredth seconds) later, nodes that get more messages might request it later as well.
Murch
CC BY-SA 3.0
2015-02-22T12:19:12.960Z
2015-02-22T12:41:08.417Z
2015-02-22T12:41:08.417Z
Murch
<p>To clarify, if person A sends bitcoins to person B, and person C sends bitcoins to person D, 1 second (or less), AFTER person A, can person C's transaction show up on the network BEFORE person A's? If so can you explain how?</p>

<p>Edit: By "show up on the network" i mean get on the blockchain. Example: If A and C both sent to the same address, but C sent his 1 second (or less) later, then if i go to blockchain.info and look at the recipients transactions, is it possible to see C's transaction before A's (even if it is unconfirmed)</p>

<transactions><nodes>
Is it possible for a person's transaction to show up on the network BEFORE mine if I send bitcoins before him?
kev
# Is it possible for a person's transaction to show up on the network BEFORE mine if I send bitcoins before him?

(Asked by: username_0 on 2015-02-22)

To clarify, if person A sends bitcoins to person B, and person C sends bitcoins to person D, 1 second (or less), AFTER person A, can person C's transaction show up on the network BEFORE person A's? If so can you explain how?

Edit: By "show up on the network" i mean get on the blockchain. Example: If A and C both sent to the same address, but C sent his 1 second (or less) later, then if i go to blockchain.info and look at the recipients transactions, is it possible to see C's transaction before A's (even if it is unconfirmed)

**Tags:** transactions, nodes


---

## 1 answers

### Answer by username_1 on 2015-02-22. Score: 0 | Accepted answer

It is not clear what you mean with "show up on the network". I will assume that you mean "included in the blockchain" rather than "submitted to the network".

## Transactions are spread peer to peer.

When a users sends a transaction, he transmits it to all the peers he is connected to. All these peers will then propagate it to their peers, and the recipients will repeat so again until all nodes in the network have received the transmission.

## An exaggerated example

Let's imagine the following (hypothetic) situation:  
**A** has only one peer, who in turn only has only one other peer. Let's say A is connected to the network in a very long chain of weakly connected nodes, which then at some point leads to the "well-connected network".  
On the other hand **C** has ten peers, of which one is very well connected such as a mining pool operator.

Now, when **A** sends his transaction, it is transmitted to one other node in the network, then a second is notified, in the next step only a third. Obviously, it will take some time until the transaction will spread to the whole network. On the other hand, when **C** sends his transaction, it is immediately received by 10 other nodes. Each of those sends it to ten other nodes, the mining pool might even send it to hundreds. The network will be notified very quickly of that transaction.

## We can see different propagation times, but the effect isn't that huge

According to [BitcoinStats](http://bitcoinstats.com/network/propagation/), it takes about 0.651 seconds for a transaction to be seen by 50% of the network, and about 2.761 seconds to be seen by 90% of the network.  
Also, the above example is exaggerated: Usually, every node will try to connect to several nodes. However, the effect that some transactions will spread faster due to being submitted to well-connected nodes still exists. If a miner finds a block and had already received the transaction of **C** but not **A**'s. **C**'s might be included in a block before **A**'s transaction. However, the window is pretty small, since the block interval is much bigger than the propagation time.  
The effect would be especially pronounced, if **A**'s transaction didn't include a transaction fee, or was non-standard, and therefore not propagated by all nodes.

> **Comments:**
> **username_0**: So it is possible then if C is connected to 'better'/more nodes. Is there anyway a normal user like me can connect to 'well connected'/more nodes other than the standard 8?  
> **username_1**: We are talking about a fraction of a second advantage. If you would perhaps explain why you are worried, I could perhaps give a better answer. AFAIK you are limited to 8 outbound connections, however, if you enable port forwarding, you can maintain more connections. The limit used to be 125 connections, but I am not sure if that is still the case.  
> **username_0**: Thank you username_1. I am not worried I'm just trying to learn in detail how the transactions enter the network(for a personal reason). One more question. Do all 8 nodes(or however many) get the transaction details at the same EXACT time or does it take some time for all 8 to get it? (I noticed in your answer you said "immediately received by 10 other nodes". Just want to clarify if the 10 receive at same time or is there a time difference (even if it is a fraction of a second)  
> **username_1**: I've read up on the communication protocol a bit more. It appears that after a node has verified a transaction, it sends an "inventory message" to its peers. The inventory message contains a hash of the transaction, and the peers can then request the transaction with a "getdata message" if they don't have it already. So, the peers don't get the information at the same time, but rather as they request it, and since there is some back and forth included, nodes with a higher latency will probably get it (some hundredth seconds) later, nodes that get more messages might request it later as well.  

---

