From a1a4a62e3069146ee127fe62fc8e5a26a8c4f5e7 Mon Sep 17 00:00:00 2001 From: subtly Date: Wed, 11 Mar 2015 14:36:08 +0100 Subject: [PATCH] fix for -warning in cryptopp.cpp. add mutex to host iteration of peers for connect. only try to connect to as many peers as is necessary. update unit test. --- peer.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/peer.cpp b/peer.cpp index 0fe3fd1ed..14712d4f1 100644 --- a/peer.cpp +++ b/peer.cpp @@ -63,6 +63,7 @@ BOOST_AUTO_TEST_CASE(save_nodes) for (auto i:{0,1,2,3,4,5}) { Host* h = new Host("Test", NetworkPreferences(30300 + i, "127.0.0.1", true, true)); + h->setIdealPeerCount(10); // starting host is required so listenport is available h->start(); while (!h->isStarted())