mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix #1475
This commit is contained in:
parent
8860f8d4c3
commit
b1a2292e77
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