aboutsummaryrefslogtreecommitdiffstats
path: root/block.cpp
diff options
context:
space:
mode:
authorCJentzsch <jentzsch.software@gmail.com>2015-02-16 20:04:28 +0800
committerCJentzsch <jentzsch.software@gmail.com>2015-02-16 20:04:28 +0800
commit2391b42b95e8f5030094f72b7b4f908f312f96e2 (patch)
treee9494e2f5e9691611c8f69c21cc5430542591e67 /block.cpp
parent3fae0daed96802e34d77437dd58f56bc7d7f804d (diff)
downloaddexon-solidity-2391b42b95e8f5030094f72b7b4f908f312f96e2.tar
dexon-solidity-2391b42b95e8f5030094f72b7b4f908f312f96e2.tar.gz
dexon-solidity-2391b42b95e8f5030094f72b7b4f908f312f96e2.tar.bz2
dexon-solidity-2391b42b95e8f5030094f72b7b4f908f312f96e2.tar.lz
dexon-solidity-2391b42b95e8f5030094f72b7b4f908f312f96e2.tar.xz
dexon-solidity-2391b42b95e8f5030094f72b7b4f908f312f96e2.tar.zst
dexon-solidity-2391b42b95e8f5030094f72b7b4f908f312f96e2.zip
OS independency by using file system
Diffstat (limited to 'block.cpp')
-rw-r--r--block.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/block.cpp b/block.cpp
index 19dcdf84..ce165bc4 100644
--- a/block.cpp
+++ b/block.cpp
@@ -20,6 +20,7 @@
* block test functions.
*/
+#include <libdevcrypto/FileSystem.h>
#include <libethereum/CanonBlockChain.h>
#include "TestHelper.h"
@@ -341,7 +342,7 @@ void doBlockTests(json_spirit::mValue& _v, bool _fillin)
State stateTmp(Address(), OverlayDB(), BaseState::Empty);
importerTmp.importState(o["pre"].get_obj(), stateTmp);
stateTmp.commit();
- BlockChain bcTmp(block.out(), "/tmp/", true);
+ BlockChain bcTmp(block.out(), getDataDir() + "/tmpBlockChain.bc", true);
stateTmp.sync(bcTmp);
bc.import(block2.out(), stateTmp.db());
stateTmp.sync(bcTmp);