mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
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:
committed by
Vinnie Falco
parent
7c81eec30c
commit
8b1df06a94
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user