aboutsummaryrefslogtreecommitdiffstats
path: root/txTest.cpp
diff options
context:
space:
mode:
authorMarko Simovic <markobarko@gmail.com>2014-03-26 13:01:17 +0800
committerMarko Simovic <markobarko@gmail.com>2014-03-26 13:01:17 +0800
commit913cdd9fd76f1969aa901ec7aec9210599dc4fea (patch)
tree8e6e15ef382fe7f5effcda344b8f13a59234627e /txTest.cpp
parent0dd1c23c32914d9d2fb706c504ddf989e68b4cac (diff)
downloaddexon-solidity-913cdd9fd76f1969aa901ec7aec9210599dc4fea.tar.gz
dexon-solidity-913cdd9fd76f1969aa901ec7aec9210599dc4fea.tar.zst
dexon-solidity-913cdd9fd76f1969aa901ec7aec9210599dc4fea.zip
Updated to add a simple forking test
Diffstat (limited to 'txTest.cpp')
-rw-r--r--txTest.cpp11
1 files changed, 1 insertions, 10 deletions
diff --git a/txTest.cpp b/txTest.cpp
index 1b8fdde9..4367b903 100644
--- a/txTest.cpp
+++ b/txTest.cpp
@@ -25,19 +25,10 @@
#include <Client.h>
#include <BlockChain.h>
#include <PeerServer.h>
+#include "TestHelper.h"
using namespace std;
using namespace eth;
-void mine(Client &c, int numBlocks)
-{
- auto startBlock = c.blockChain().details().number;
-
- c.startMining();
- while(c.blockChain().details().number < startBlock + numBlocks)
- this_thread::sleep_for(chrono::milliseconds(1000));
- c.stopMining();
-}
-
BOOST_AUTO_TEST_CASE(mine_and_send_to_peer)
{
KeyPair kp1 = KeyPair::create();