mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
update CLI and AZ UI for replacing local-networking with explicit --listen-ip
This commit is contained in:
parent
d2b5407502
commit
f9091e1677
6
peer.cpp
6
peer.cpp
@ -35,8 +35,8 @@ BOOST_AUTO_TEST_CASE(host)
|
|||||||
auto oldLogVerbosity = g_logVerbosity;
|
auto oldLogVerbosity = g_logVerbosity;
|
||||||
g_logVerbosity = 10;
|
g_logVerbosity = 10;
|
||||||
|
|
||||||
NetworkPreferences host1prefs(30301, "127.0.0.1", false, true);
|
NetworkPreferences host1prefs("127.0.0.1", 30301, false);
|
||||||
NetworkPreferences host2prefs(30302, "127.0.0.1", false, true);
|
NetworkPreferences host2prefs("127.0.0.1", 30302, false);
|
||||||
|
|
||||||
Host host1("Test", host1prefs);
|
Host host1("Test", host1prefs);
|
||||||
host1.start();
|
host1.start();
|
||||||
@ -62,7 +62,7 @@ BOOST_AUTO_TEST_CASE(save_nodes)
|
|||||||
std::list<Host*> hosts;
|
std::list<Host*> hosts;
|
||||||
for (auto i:{0,1,2,3,4,5})
|
for (auto i:{0,1,2,3,4,5})
|
||||||
{
|
{
|
||||||
Host* h = new Host("Test", NetworkPreferences(30300 + i, "127.0.0.1", false, true));
|
Host* h = new Host("Test", NetworkPreferences("127.0.0.1", 30300 + i, false));
|
||||||
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();
|
||||||
|
Loading…
Reference in New Issue
Block a user