Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: pera on March 15, 2013, 02:22:20 PM



Title: Speed up syncing on newer blocks with maxconnections (v0.8)
Post by: pera on March 15, 2013, 02:22:20 PM
Synchronize with the network get slower (almost "exponentially") when you are reaching the end of the blockchain, and for some users it get stuck at some point.
On my case I got like 1 block per minute or more, and I was around 90% for 2 days. But then I realized that if I restarted the client it begun to download the chain again at a rate of ~3 blocks per second, but then after a couple of minutes it was getting slower and slower.
It looked like there was an inverse relationship between the number of peers connected (~10) to my client and the syncing speed, so I tried starting bitcoin-qt with maxconnections=2 and the speed kept at ~2 blocks per second, with 4 connections it was like 3, but then with 5 it was slower...
So, I could finally synchronize with the network in a couple of hours using maxconnections=4 :)
I do have UPnP on my router, and (eg) BitTorrent works just fine.

could somebody explain this behaviour?  ???


Title: Re: Speed up syncing on newer blocks with maxconnections (v0.8)
Post by: justusranvier on March 15, 2013, 02:26:47 PM
I don't know why it happens but if I need to bootstrap a new node I start it up with the connect= argument to only download from a single server, ideally one on the same LAN.


Title: Re: Speed up syncing on newer blocks with maxconnections (v0.8)
Post by: pera on March 15, 2013, 02:33:52 PM
I don't know why it happens but if I need to bootstrap a new node I start it up with the connect= argument to only download from a single server, ideally one on the same LAN.
oh you remind me that I was going to suggest some api call to look up for other peers so you can find the best one/faster for your host (for geographical reasons)