diff options
author | subtly <subtly@users.noreply.github.com> | 2015-03-11 21:36:08 +0800 |
---|---|---|
committer | subtly <subtly@users.noreply.github.com> | 2015-03-11 21:36:08 +0800 |
commit | a1a4a62e3069146ee127fe62fc8e5a26a8c4f5e7 (patch) | |
tree | 9fb48b2b4f3396fb41c962cdd0726b2d53f42cd1 /peer.cpp | |
parent | 9db703b5b1c0c5785d2759242260620fb0345b03 (diff) | |
download | dexon-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.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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()) |