mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
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.
This commit is contained in:
parent
9db703b5b1
commit
a1a4a62e30
1
peer.cpp
1
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())
|
||||
|
Loading…
Reference in New Issue
Block a user