diff options
author | subtly <subtly@users.noreply.github.com> | 2015-03-31 16:28:46 +0800 |
---|---|---|
committer | subtly <subtly@users.noreply.github.com> | 2015-03-31 16:28:46 +0800 |
commit | b1a2292e77adcc2dab39fd76f15d7ca45ab64ae4 (patch) | |
tree | 6a823bcae010d31b69f5bcde363e643d807f7bc6 | |
parent | 8860f8d4c3590423f486559b11bf6c2db9bbab7a (diff) | |
download | dexon-solidity-b1a2292e77adcc2dab39fd76f15d7ca45ab64ae4.tar dexon-solidity-b1a2292e77adcc2dab39fd76f15d7ca45ab64ae4.tar.gz dexon-solidity-b1a2292e77adcc2dab39fd76f15d7ca45ab64ae4.tar.bz2 dexon-solidity-b1a2292e77adcc2dab39fd76f15d7ca45ab64ae4.tar.lz dexon-solidity-b1a2292e77adcc2dab39fd76f15d7ca45ab64ae4.tar.xz dexon-solidity-b1a2292e77adcc2dab39fd76f15d7ca45ab64ae4.tar.zst dexon-solidity-b1a2292e77adcc2dab39fd76f15d7ca45ab64ae4.zip |
Fix #1475
-rw-r--r-- | peer.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -57,6 +57,15 @@ BOOST_AUTO_TEST_CASE(host) 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) { std::list<Host*> hosts; |