From d2d0fde2334def5a22b39b23e42e1857e8f3c15a Mon Sep 17 00:00:00 2001 From: orignal Date: Thu, 20 Jul 2017 10:31:59 -0400 Subject: [PATCH] create data directory for testnet --- src/util.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/util.cpp b/src/util.cpp index 13c1199..9f9be48 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -1116,7 +1116,10 @@ const boost::filesystem::path &GetDataDir(bool fNetSpecific) path = GetDefaultDataDir(); } if (fNetSpecific && GetBoolArg("-testnet", false)) + { + fs::create_directory(path); path /= "testnet3"; + } fs::create_directory(path);