From 90b7b43d4380f2d87d11041a8c6623706f277470 Mon Sep 17 00:00:00 2001 From: Tim Hughes Date: Wed, 19 Feb 2014 22:16:20 +0000 Subject: Replace hard-coded /tmp paths with call to boost::filesystem::temp_directory_path() --- state.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'state.cpp') 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 #include #include #include @@ -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; -- cgit