aboutsummaryrefslogtreecommitdiffstats
path: root/peer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'peer.cpp')
-rw-r--r--peer.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/peer.cpp b/peer.cpp
index 64998fd5..14bf790e 100644
--- a/peer.cpp
+++ b/peer.cpp
@@ -20,6 +20,7 @@
* Peer Network test functions.
*/
+#include <BlockChain.h>
#include <PeerNetwork.h>
using namespace std;
using namespace eth;
@@ -44,7 +45,8 @@ int peerTest(int argc, char** argv)
remoteHost = argv[i];
}
- PeerServer pn(0, listenPort);
+ BlockChain ch("/tmp");
+ PeerServer pn(ch, 0, listenPort);
if (!remoteHost.empty())
pn.connect(remoteHost, remotePort);