mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Improve addNode functionality when addNode is called during network startup.
This commit is contained in:
parent
985271d8fc
commit
a8c8d5ece5
2
peer.cpp
2
peer.cpp
@ -75,7 +75,7 @@ BOOST_AUTO_TEST_CASE(save_nodes)
|
|||||||
h->setIdealPeerCount(10);
|
h->setIdealPeerCount(10);
|
||||||
// starting host is required so listenport is available
|
// starting host is required so listenport is available
|
||||||
h->start();
|
h->start();
|
||||||
while (!h->isStarted())
|
while (!h->haveNetwork())
|
||||||
this_thread::sleep_for(chrono::milliseconds(2));
|
this_thread::sleep_for(chrono::milliseconds(2));
|
||||||
hosts.push_back(h);
|
hosts.push_back(h);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user