mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
GUI & network stuff.
This commit is contained in:
parent
803e992070
commit
7c9a1238b7
4
peer.cpp
4
peer.cpp
@ -46,7 +46,7 @@ int peerTest(int argc, char** argv)
|
||||
}
|
||||
|
||||
BlockChain ch("/tmp");
|
||||
PeerServer pn(ch, 0, listenPort);
|
||||
PeerServer pn("Test", ch, 0, listenPort);
|
||||
|
||||
if (!remoteHost.empty())
|
||||
pn.connect(remoteHost, remotePort);
|
||||
@ -54,7 +54,7 @@ int peerTest(int argc, char** argv)
|
||||
for (int i = 0; ; ++i)
|
||||
{
|
||||
usleep(100000);
|
||||
pn.process();
|
||||
pn.process(ch);
|
||||
if (!(i % 10))
|
||||
pn.pingAll();
|
||||
}
|
||||
|
@ -47,7 +47,7 @@ int stateTest()
|
||||
|
||||
// Mine to get some ether!
|
||||
s.commitToMine(bc);
|
||||
while (s.mine(100).empty()) {}
|
||||
while (s.mine(100).completed()) {}
|
||||
bc.attemptImport(s.blockData(), stateDB);
|
||||
|
||||
cout << bc;
|
||||
@ -74,7 +74,7 @@ int stateTest()
|
||||
|
||||
// Mine to get some ether and set in stone.
|
||||
s.commitToMine(bc);
|
||||
while (s.mine(100).empty()) {}
|
||||
while (s.mine(100).completed()) {}
|
||||
bc.attemptImport(s.blockData(), stateDB);
|
||||
|
||||
cout << bc;
|
||||
|
Loading…
Reference in New Issue
Block a user