aboutsummaryrefslogtreecommitdiff
path: root/src/bitcoin-wallet.cpp
diff options
context:
space:
mode:
authorHennadii Stepanov <[email protected]>2019-07-24 18:54:52 +0300
committerHennadii Stepanov <[email protected]>2019-07-24 18:54:52 +0300
commit66f5c17f8a3fe06fc65191e379ffc04e43cbbc86 (patch)
tree5551bd298c43a463f1ed213758ea026edb2d700a /src/bitcoin-wallet.cpp
parentFix datadir handling in bitcoin-cli (diff)
downloaddiscoin-66f5c17f8a3fe06fc65191e379ffc04e43cbbc86.tar.xz
discoin-66f5c17f8a3fe06fc65191e379ffc04e43cbbc86.zip
Use CheckDataDirOption() for code uniformity
All other clients and tools use CheckDataDirOption() rather fs::is_directory(GetDataDir(false)) for the first datadir check.
Diffstat (limited to 'src/bitcoin-wallet.cpp')
-rw-r--r--src/bitcoin-wallet.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bitcoin-wallet.cpp b/src/bitcoin-wallet.cpp
index cbb4ea750..596e126a2 100644
--- a/src/bitcoin-wallet.cpp
+++ b/src/bitcoin-wallet.cpp
@@ -55,7 +55,7 @@ static bool WalletAppInit(int argc, char* argv[])
// check for printtoconsole, allow -debug
LogInstance().m_print_to_console = gArgs.GetBoolArg("-printtoconsole", gArgs.GetBoolArg("-debug", false));
- if (!fs::is_directory(GetDataDir(false))) {
+ if (!CheckDataDirOption()) {
tfm::format(std::cerr, "Error: Specified data directory \"%s\" does not exist.\n", gArgs.GetArg("-datadir", "").c_str());
return false;
}