diff options
author | Tim Hughes <tim@twistedfury.com> | 2014-02-19 00:33:06 +0800 |
---|---|---|
committer | Tim Hughes <tim@twistedfury.com> | 2014-02-19 00:34:57 +0800 |
commit | 8aeece1eb51074ecab86105365c6f5176c9057cd (patch) | |
tree | 523d877b7e41d76c7a5a18e455a7ad82df2a5b76 /vm.cpp | |
parent | 34b1ba48147e55a064644b19276143562713726a (diff) | |
download | dexon-solidity-8aeece1eb51074ecab86105365c6f5176c9057cd.tar dexon-solidity-8aeece1eb51074ecab86105365c6f5176c9057cd.tar.gz dexon-solidity-8aeece1eb51074ecab86105365c6f5176c9057cd.tar.bz2 dexon-solidity-8aeece1eb51074ecab86105365c6f5176c9057cd.tar.lz dexon-solidity-8aeece1eb51074ecab86105365c6f5176c9057cd.tar.xz dexon-solidity-8aeece1eb51074ecab86105365c6f5176c9057cd.tar.zst dexon-solidity-8aeece1eb51074ecab86105365c6f5176c9057cd.zip |
Fixed hardcoded /tmp path.
Diffstat (limited to 'vm.cpp')
-rw-r--r-- | vm.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -21,6 +21,7 @@ */ #include <boost/algorithm/string.hpp> +#include <boost/filesystem/operations.hpp> #include <secp256k1.h> #include <BlockChain.h> #include <State.h> @@ -38,10 +39,11 @@ public: { c_genesisDifficulty = (u256)1; + string tmpDir = (boost::filesystem::temp_directory_path() / "vmTest").string(); KeyPair p = KeyPair::create(); - Overlay o(State::openDB("/tmp/vmTest", true)); + Overlay o(State::openDB(tmpDir, true)); State s(p.address(), o); - BlockChain bc("/tmp/vmTest", true); + BlockChain bc(tmpDir, true); cout << s; |