diff options
author | Marko Simovic <markobarko@gmail.com> | 2014-03-26 13:01:17 +0800 |
---|---|---|
committer | Marko Simovic <markobarko@gmail.com> | 2014-03-26 13:01:17 +0800 |
commit | 913cdd9fd76f1969aa901ec7aec9210599dc4fea (patch) | |
tree | 8e6e15ef382fe7f5effcda344b8f13a59234627e /txTest.cpp | |
parent | 0dd1c23c32914d9d2fb706c504ddf989e68b4cac (diff) | |
download | dexon-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.cpp | 11 |
1 files changed, 1 insertions, 10 deletions
@@ -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(); |