Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: ripper234 on June 08, 2011, 05:31:14 AM



Title: Does the standard client cache peers' addresses?
Post by: ripper234 on June 08, 2011, 05:31:14 AM
I find that whenever I start the client, it takes a long time to bootstrap (stays at 0 connections for a good amount of time).
Is there currently any caching of peers' addresses?

One idea is having the client keep track of peer statistics and thus find which peers will probably be up.
It can keep a simple table of (peer ip, connections attempts, successful connections), and on restart try to connect to the peers with the best past performance.
An improvement is tracking each connection attempt and decaying the weight of old successful connections (weighted probability).

Is there any work done/planned in this area?


Title: Re: Does the standard client cache peers' addresses?
Post by: rahl on June 08, 2011, 10:04:02 AM
try

addnode=64.27.57.225

in your bitcoin.conf file

There are longer lists of reliable nodes out there...


Title: Re: Does the standard client cache peers' addresses?
Post by: ripper234 on June 08, 2011, 11:52:14 AM
try

addnode=64.27.57.225

in your bitcoin.conf file

There are longer lists of reliable nodes out there...

Where would that bitcoin.conf be?


Title: Re: Does the standard client cache peers' addresses?
Post by: grue on June 08, 2011, 12:58:33 PM
%appdata%/bitcoin


Title: Re: Does the standard client cache peers' addresses?
Post by: ripper234 on June 08, 2011, 01:56:08 PM
Nope. I'm still using 3.20 though, is this a new feature?