diff options
author | Gav Wood <g@ethdev.com> | 2015-03-31 23:00:58 +0800 |
---|---|---|
committer | Gav Wood <g@ethdev.com> | 2015-03-31 23:00:58 +0800 |
commit | de4b85273813341dd4392c755fb074124774ffb9 (patch) | |
tree | af0ef9a42dc3b3f56fb6df655542364e5dffb8dc | |
parent | 1ba183bf780a28c188600aaf12d3f6df0cf5691d (diff) | |
parent | b1a2292e77adcc2dab39fd76f15d7ca45ab64ae4 (diff) | |
download | dexon-solidity-de4b85273813341dd4392c755fb074124774ffb9.tar dexon-solidity-de4b85273813341dd4392c755fb074124774ffb9.tar.gz dexon-solidity-de4b85273813341dd4392c755fb074124774ffb9.tar.bz2 dexon-solidity-de4b85273813341dd4392c755fb074124774ffb9.tar.lz dexon-solidity-de4b85273813341dd4392c755fb074124774ffb9.tar.xz dexon-solidity-de4b85273813341dd4392c755fb074124774ffb9.tar.zst dexon-solidity-de4b85273813341dd4392c755fb074124774ffb9.zip |
Merge pull request #1476 from ethereum/p2p
Fix #1475: network config not being saved by CLI && AZ
-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; |