mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #1476 from ethereum/p2p
Fix #1475: network config not being saved by CLI && AZ
This commit is contained in:
commit
de4b852738
9
peer.cpp
9
peer.cpp
@ -57,6 +57,15 @@ BOOST_AUTO_TEST_CASE(host)
|
|||||||
g_logVerbosity = oldLogVerbosity;
|
g_logVerbosity = oldLogVerbosity;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
BOOST_AUTO_TEST_CASE(networkConfig)
|
||||||
|
{
|
||||||
|
Host save("Test", NetworkPreferences(false));
|
||||||
|
bytes store(save.saveNetwork());
|
||||||
|
|
||||||
|
Host restore("Test", NetworkPreferences(false), bytesConstRef(&store));
|
||||||
|
BOOST_REQUIRE(save.id() == restore.id());
|
||||||
|
}
|
||||||
|
|
||||||
BOOST_AUTO_TEST_CASE(save_nodes)
|
BOOST_AUTO_TEST_CASE(save_nodes)
|
||||||
{
|
{
|
||||||
std::list<Host*> hosts;
|
std::list<Host*> hosts;
|
||||||
|
Loading…
Reference in New Issue
Block a user