Use [ips_fixed] over r.ripple.com as the default [ips]

This commit is contained in:
wilsonianb
2015-11-12 14:37:27 -08:00
committed by Nik Bougalis
parent 124ea41d85
commit 98bdb9de68
2 changed files with 7 additions and 4 deletions

View File

@@ -293,6 +293,7 @@
# [ips]
# r.ripple.com 51235
#
# The default is: [ips_fixed] addresses (if present) or r.ripple.com 51235
#
#
# [ips_fixed]

View File

@@ -512,10 +512,12 @@ OverlayImpl::onPrepare()
m_peerFinder->setConfig (config);
auto bootstrapIps (app_.config().IPS);
// If no IPs are specified, use the Ripple Labs round robin
// pool to get some servers to insert into the boot cache.
// Populate our boot cache: if there are no entries in [ips] then we use
// the entries in [ips_fixed]. If both are empty, we resort to a round-robin
// pool.
auto bootstrapIps = app_.config().IPS.empty()
? app_.config().IPS_FIXED
: app_.config().IPS;
if (bootstrapIps.empty ())
bootstrapIps.push_back ("r.ripple.com 51235");