<p>Your client gets it from another client that has already received it. You then relay it to other clients that connect to you, and the cycle repeats.</p>

CC BY-SA 3.0
2014-10-24T15:03:41.027Z
Then the obvious question which comes up in my mind is, how does my client get the IP of another client which has the latest version of the blockchain in the P2P network?
sherlock
CC BY-SA 3.0
2014-10-24T18:25:54.640Z
@Holmes.Sherlock: It's sort of the other way around.  When you start your client, it [discovers](http://bitcoin.stackexchange.com/questions/14410/how-does-bitcoin-find-peers/14416#14416) some other clients to become its peers, and connects to them.  It asks them for all the blocks that they have, and then stays connected to them.  When any client learns about a new block, it relays them to all of its connected peers who don't yet have it.
Nate Eldredge
CC BY-SA 3.0
2014-10-24T18:27:03.857Z
@Holmes.Sherlock: So the original miner broadcasts to its peers, and  they broadcast to their peers, and so on - eventually (hopefully with rare exceptions) every client on the network gets it.  Every client also stores it locally so it can use it for its own verifications, and so that it can pass it along to any newly connected clients who don't yet have it.
Nate Eldredge
CC BY-SA 3.0
2014-10-24T18:45:07.033Z
How does a node can get to know about its peers?
sherlock
CC BY-SA 3.0
2014-10-25T06:52:49.533Z
@Holmes.Sherlock http://bitcoin.stackexchange.com/q/3536
Nick ODell
CC BY-SA 3.0
2014-10-24T14:42:23.040Z
2014-10-24T14:42:23.040Z
Nate Eldredge
<p>After mining, a block is validated and broadcasted by the miner. Then, where does this newly mined block get stored at? Where does my Bitcoin client pull the transaction data from?</p>

<transactions>
How is the distributed transaction log stored in P2P network?
sherlock
# How is the distributed transaction log stored in P2P network?

(Asked by: username_0 on 2014-10-23)

After mining, a block is validated and broadcasted by the miner. Then, where does this newly mined block get stored at? Where does my Bitcoin client pull the transaction data from?

**Tags:** transactions


---

## 1 answers

### Answer by username_1 on 2014-10-24. Score: 1

Your client gets it from another client that has already received it. You then relay it to other clients that connect to you, and the cycle repeats.

> **Comments:**
> **username_0**: Then the obvious question which comes up in my mind is, how does my client get the IP of another client which has the latest version of the blockchain in the P2P network?  
> **username_1**: @Holmes.username_0: It's sort of the other way around.  When you start your client, it [discovers](http://bitcoin.stackexchange.com/questions/14410/how-does-bitcoin-find-peers/14416#14416) some other clients to become its peers, and connects to them.  It asks them for all the blocks that they have, and then stays connected to them.  When any client learns about a new block, it relays them to all of its connected peers who don't yet have it.  
> **username_1**: @Holmes.username_0: So the original miner broadcasts to its peers, and  they broadcast to their peers, and so on - eventually (hopefully with rare exceptions) every client on the network gets it.  Every client also stores it locally so it can use it for its own verifications, and so that it can pass it along to any newly connected clients who don't yet have it.  
> **username_0**: How does a node can get to know about its peers?  
> **username_2**: @Holmes.username_0 http://bitcoin.stackexchange.com/q/3536  

---

