From 7a743148c999436840ab2ab249047f5f34e896b0 Mon Sep 17 00:00:00 2001 From: Pieter Wuille Date: Fri, 13 Apr 2012 03:11:14 +0200 Subject: [PATCH] Fix #1086: add /testnet to passed datadir --- src/util.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util.cpp b/src/util.cpp index 91f1810e..c4464748 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -836,9 +836,9 @@ const boost::filesystem::path &GetDataDir(bool fNetSpecific) path = mapArgs["-datadir"]; } else { path = GetDefaultDataDir(); - if (fNetSpecific && GetBoolArg("-testnet", false)) - path /= "testnet"; } + if (fNetSpecific && GetBoolArg("-testnet", false)) + path /= "testnet"; fs::create_directory(path);