diff options
author | CJentzsch <jentzsch.software@gmail.com> | 2015-02-16 20:04:28 +0800 |
---|---|---|
committer | CJentzsch <jentzsch.software@gmail.com> | 2015-02-16 20:04:28 +0800 |
commit | 2391b42b95e8f5030094f72b7b4f908f312f96e2 (patch) | |
tree | e9494e2f5e9691611c8f69c21cc5430542591e67 /block.cpp | |
parent | 3fae0daed96802e34d77437dd58f56bc7d7f804d (diff) | |
download | dexon-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.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); |