aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGav Wood <g@ethdev.com>2015-03-31 23:00:58 +0800
committerGav Wood <g@ethdev.com>2015-03-31 23:00:58 +0800
commitde4b85273813341dd4392c755fb074124774ffb9 (patch)
treeaf0ef9a42dc3b3f56fb6df655542364e5dffb8dc
parent1ba183bf780a28c188600aaf12d3f6df0cf5691d (diff)
parentb1a2292e77adcc2dab39fd76f15d7ca45ab64ae4 (diff)
downloaddexon-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.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/peer.cpp b/peer.cpp
index 48431504..904de0e9 100644
--- a/peer.cpp
+++ b/peer.cpp
@@ -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;