PeerFinder fixes:

* Fix local advertisement (was missing)
* Fix Livecache histogram display
* If no [ips] are specified, use r.ripple.com
* Use different backing stores for PeerFinder and Validator databases
This commit is contained in:
Nik Bougalis
2014-03-03 18:31:55 -08:00
committed by Vinnie Falco
parent 7c81eec30c
commit 8b1df06a94
4 changed files with 44 additions and 20 deletions

View File

@@ -411,9 +411,16 @@ public:
m_peerFinder->setConfig (config);
if (!getConfig ().IPS.empty ())
auto bootstrapIps (getConfig ().IPS);
// If no IPs are specified, use the Ripple Labs round robin
// pool to get some servers to insert into the boot cache.
if (bootstrapIps.empty ())
bootstrapIps.push_back ("r.ripple.com 51235");
if (!bootstrapIps.empty ())
{
m_resolver.resolve (getConfig ().IPS,
m_resolver.resolve (bootstrapIps,
[this](
std::string const& name,
std::vector <IP::Endpoint> const& addresses)