mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Added client API & prototypal GUI.
This commit is contained in:
parent
2b13a04f49
commit
803e992070
4
peer.cpp
4
peer.cpp
@ -20,6 +20,7 @@
|
|||||||
* Peer Network test functions.
|
* Peer Network test functions.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <BlockChain.h>
|
||||||
#include <PeerNetwork.h>
|
#include <PeerNetwork.h>
|
||||||
using namespace std;
|
using namespace std;
|
||||||
using namespace eth;
|
using namespace eth;
|
||||||
@ -44,7 +45,8 @@ int peerTest(int argc, char** argv)
|
|||||||
remoteHost = argv[i];
|
remoteHost = argv[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
PeerServer pn(0, listenPort);
|
BlockChain ch("/tmp");
|
||||||
|
PeerServer pn(ch, 0, listenPort);
|
||||||
|
|
||||||
if (!remoteHost.empty())
|
if (!remoteHost.empty())
|
||||||
pn.connect(remoteHost, remotePort);
|
pn.connect(remoteHost, remotePort);
|
||||||
|
Loading…
Reference in New Issue
Block a user