diff options
author | Tim Hughes <tim@twistedfury.com> | 2014-02-20 06:16:20 +0800 |
---|---|---|
committer | Tim Hughes <tim@twistedfury.com> | 2014-02-20 07:12:09 +0800 |
commit | 90b7b43d4380f2d87d11041a8c6623706f277470 (patch) | |
tree | f319f404b3fd7f633e0dbb04db414067f92634ca /state.cpp | |
parent | ae48bfdde244e92f5bf093ac3d2b877cca1b7078 (diff) | |
download | dexon-solidity-90b7b43d4380f2d87d11041a8c6623706f277470.tar dexon-solidity-90b7b43d4380f2d87d11041a8c6623706f277470.tar.gz dexon-solidity-90b7b43d4380f2d87d11041a8c6623706f277470.tar.bz2 dexon-solidity-90b7b43d4380f2d87d11041a8c6623706f277470.tar.lz dexon-solidity-90b7b43d4380f2d87d11041a8c6623706f277470.tar.xz dexon-solidity-90b7b43d4380f2d87d11041a8c6623706f277470.tar.zst dexon-solidity-90b7b43d4380f2d87d11041a8c6623706f277470.zip |
Replace hard-coded /tmp paths with call to boost::filesystem::temp_directory_path()
Diffstat (limited to 'state.cpp')
-rw-r--r-- | state.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -20,6 +20,7 @@ * State test functions. */ +#include <boost/filesystem/operations.hpp> #include <secp256k1.h> #include <BlockChain.h> #include <State.h> @@ -33,7 +34,7 @@ int stateTest() KeyPair myMiner = sha3("Gav's Miner"); // KeyPair you = sha3("123"); - Defaults::setDBPath("/tmp"); + Defaults::setDBPath(boost::filesystem::temp_directory_path().string()); Overlay stateDB = State::openDB(); BlockChain bc; |