aboutsummaryrefslogtreecommitdiffstats
path: root/state.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'state.cpp')
-rw-r--r--state.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/state.cpp b/state.cpp
index 8cd5f9ff..a3ea2aea 100644
--- a/state.cpp
+++ b/state.cpp
@@ -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;