aboutsummaryrefslogtreecommitdiffstats
path: root/peer.cpp
diff options
context:
space:
mode:
authorGav Wood <i@gavwood.com>2014-09-02 00:54:06 +0800
committerGav Wood <i@gavwood.com>2014-09-02 00:54:06 +0800
commitdbf099d121da1fa449e6d8ab0bb7d074fcb7c668 (patch)
tree7e251379c973e80082cef77949ef9e68c5e11a65 /peer.cpp
parent42920f5d93b83cb5034380f2b8c9d39b045cc7ec (diff)
downloaddexon-solidity-dbf099d121da1fa449e6d8ab0bb7d074fcb7c668.tar.gz
dexon-solidity-dbf099d121da1fa449e6d8ab0bb7d074fcb7c668.tar.zst
dexon-solidity-dbf099d121da1fa449e6d8ab0bb7d074fcb7c668.zip
New net is compiling.
Diffstat (limited to 'peer.cpp')
-rw-r--r--peer.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/peer.cpp b/peer.cpp
index 63f2b086..4825eea3 100644
--- a/peer.cpp
+++ b/peer.cpp
@@ -22,9 +22,7 @@
#include <chrono>
#include <thread>
-#include <boost/filesystem/operations.hpp>
-#include <libethereum/BlockChain.h>
-#include <libethereum/EthereumHost.h>
+#include <libethnet/PeerHost.h>
using namespace std;
using namespace eth;
using boost::asio::ip::tcp;
@@ -48,18 +46,17 @@ int peerTest(int argc, char** argv)
remoteHost = argv[i];
}
- BlockChain ch(boost::filesystem::temp_directory_path().string());
- EthereumHost pn("Test", ch, 0, listenPort);
+ PeerHost ph("Test", listenPort);
if (!remoteHost.empty())
- pn.connect(remoteHost, remotePort);
+ ph.connect(remoteHost, remotePort);
for (int i = 0; ; ++i)
{
this_thread::sleep_for(chrono::milliseconds(100));
// pn.sync();
if (!(i % 10))
- pn.pingAll();
+ ph.pingAll();
}
return 0;