Added client API & prototypal GUI.

This commit is contained in:
Gav Wood 2014-01-22 12:56:03 -05:00
parent 2b13a04f49
commit 803e992070

View File

@ -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);