mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-25 13:35:54 +00:00
PeerFinder work and refactoring:
* Implement PeerFinder business logic. * Support fixed peers (including DNS support). * Add journal support to Peer and Peers. * Refactor PeerDoor support. * Tidy up Peers and eliminate connection functionality and timers. * Refactor Peer interface and add journal support. * Allow construction of incoming Peer using an existing socket. * Remove TESTNET support. * Allow connections from/to cluster peers without consuming slots * Misc. cleanups.
This commit is contained in:
committed by
Vinnie Falco
parent
a253b2ef4b
commit
e60b28980a
@@ -40,15 +40,15 @@ public:
|
||||
|
||||
void fetch (Results& results, Journal journal)
|
||||
{
|
||||
results.list.resize (0);
|
||||
results.list.reserve (m_strings.size());
|
||||
results.addresses.resize (0);
|
||||
results.addresses.reserve (m_strings.size());
|
||||
for (int i = 0; i < m_strings.size (); ++i)
|
||||
{
|
||||
IPAddress ep (
|
||||
IPAddress::from_string_altform (
|
||||
m_strings [i]));
|
||||
if (! ep.empty())
|
||||
results.list.push_back (ep);
|
||||
if (! is_unspecified (ep))
|
||||
results.addresses.push_back (ep);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user