aboutsummaryrefslogtreecommitdiffstats
path: root/peer.cpp
diff options
context:
space:
mode:
authorsubtly <subtly@users.noreply.github.com>2015-03-11 21:36:08 +0800
committersubtly <subtly@users.noreply.github.com>2015-03-11 21:36:08 +0800
commita1a4a62e3069146ee127fe62fc8e5a26a8c4f5e7 (patch)
tree9fb48b2b4f3396fb41c962cdd0726b2d53f42cd1 /peer.cpp
parent9db703b5b1c0c5785d2759242260620fb0345b03 (diff)
downloaddexon-solidity-a1a4a62e3069146ee127fe62fc8e5a26a8c4f5e7.tar
dexon-solidity-a1a4a62e3069146ee127fe62fc8e5a26a8c4f5e7.tar.gz
dexon-solidity-a1a4a62e3069146ee127fe62fc8e5a26a8c4f5e7.tar.bz2
dexon-solidity-a1a4a62e3069146ee127fe62fc8e5a26a8c4f5e7.tar.lz
dexon-solidity-a1a4a62e3069146ee127fe62fc8e5a26a8c4f5e7.tar.xz
dexon-solidity-a1a4a62e3069146ee127fe62fc8e5a26a8c4f5e7.tar.zst
dexon-solidity-a1a4a62e3069146ee127fe62fc8e5a26a8c4f5e7.zip
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.
Diffstat (limited to 'peer.cpp')
-rw-r--r--peer.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/peer.cpp b/peer.cpp
index 0fe3fd1e..14712d4f 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())