aboutsummaryrefslogtreecommitdiffstats
path: root/net.cpp
diff options
context:
space:
mode:
authorjhuntley <jhuntley@houghtonassociates.com>2015-02-27 05:05:53 +0800
committerjhuntley <jhuntley@houghtonassociates.com>2015-03-05 00:18:32 +0800
commite229b5d291eefbf05e77988149d3ba2dc0059575 (patch)
treea8bf8cf138f206f8d37dcc1429b0e4e65ab0e126 /net.cpp
parent5ae585f7cf21ae281f564d0edbad1251129f256d (diff)
downloaddexon-solidity-e229b5d291eefbf05e77988149d3ba2dc0059575.tar
dexon-solidity-e229b5d291eefbf05e77988149d3ba2dc0059575.tar.gz
dexon-solidity-e229b5d291eefbf05e77988149d3ba2dc0059575.tar.bz2
dexon-solidity-e229b5d291eefbf05e77988149d3ba2dc0059575.tar.lz
dexon-solidity-e229b5d291eefbf05e77988149d3ba2dc0059575.tar.xz
dexon-solidity-e229b5d291eefbf05e77988149d3ba2dc0059575.tar.zst
dexon-solidity-e229b5d291eefbf05e77988149d3ba2dc0059575.zip
Revert all asio.h includes except for in 2 files, DebuggingStateWrapper.h and Transact.cpp. After enabling WIN32_LEAN_AND_MEAN, all the asio.h include issues, commit 20b6e24ffcab088e71092e07030a377d3135da3c, went away.
Diffstat (limited to 'net.cpp')
-rw-r--r--net.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/net.cpp b/net.cpp
index fafcc1ff..831c283e 100644
--- a/net.cpp
+++ b/net.cpp
@@ -19,8 +19,6 @@
* @date 2014
*/
-// Make sure boost/asio.hpp is included before windows.h.
-#include <boost/asio.hpp>
#include <boost/test/unit_test.hpp>
#include <libdevcore/Worker.h>
@@ -192,22 +190,22 @@ BOOST_AUTO_TEST_CASE(kademlia)
node.populateAll();
clog << "NodeTable:\n" << *node.nodeTable.get() << endl;
-
+
auto nodes = node.nodeTable->nodes();
nodes.sort();
-
+
node.nodeTable->reset();
clog << "NodeTable:\n" << *node.nodeTable.get() << endl;
node.populate(1);
clog << "NodeTable:\n" << *node.nodeTable.get() << endl;
-
+
node.nodeTable->discover();
this_thread::sleep_for(chrono::milliseconds(2000));
clog << "NodeTable:\n" << *node.nodeTable.get() << endl;
BOOST_REQUIRE_EQUAL(node.nodeTable->count(), 8);
-
+
auto netNodes = node.nodeTable->nodes();
netNodes.sort();