From 913cdd9fd76f1969aa901ec7aec9210599dc4fea Mon Sep 17 00:00:00 2001 From: Marko Simovic Date: Wed, 26 Mar 2014 01:01:17 -0400 Subject: Updated to add a simple forking test --- txTest.cpp | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'txTest.cpp') diff --git a/txTest.cpp b/txTest.cpp index 1b8fdde9..4367b903 100644 --- a/txTest.cpp +++ b/txTest.cpp @@ -25,19 +25,10 @@ #include #include #include +#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(); -- cgit v1.2.3