aboutsummaryrefslogtreecommitdiffstats
path: root/peer.cpp
diff options
context:
space:
mode:
authorTim Hughes <tim@twistedfury.com>2014-02-20 06:16:20 +0800
committerTim Hughes <tim@twistedfury.com>2014-02-20 07:12:09 +0800
commit90b7b43d4380f2d87d11041a8c6623706f277470 (patch)
treef319f404b3fd7f633e0dbb04db414067f92634ca /peer.cpp
parentae48bfdde244e92f5bf093ac3d2b877cca1b7078 (diff)
downloaddexon-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 'peer.cpp')
-rw-r--r--peer.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/peer.cpp b/peer.cpp
index 6dfe363f..21aa8500 100644
--- a/peer.cpp
+++ b/peer.cpp
@@ -22,6 +22,7 @@
#include <chrono>
#include <thread>
+#include <boost/filesystem/operations.hpp>
#include <BlockChain.h>
#include <PeerNetwork.h>
using namespace std;
@@ -47,7 +48,7 @@ int peerTest(int argc, char** argv)
remoteHost = argv[i];
}
- BlockChain ch("/tmp");
+ BlockChain ch(boost::filesystem::temp_directory_path().string());
PeerServer pn("Test", ch, 0, listenPort);
if (!remoteHost.empty())