Skip to content

Commit 66f5c17

Browse files
committed
Use CheckDataDirOption() for code uniformity
All other clients and tools use CheckDataDirOption() rather fs::is_directory(GetDataDir(false)) for the first datadir check.
1 parent 7e33a18 commit 66f5c17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bitcoin-wallet.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ static bool WalletAppInit(int argc, char* argv[])
5555
// check for printtoconsole, allow -debug
5656
LogInstance().m_print_to_console = gArgs.GetBoolArg("-printtoconsole", gArgs.GetBoolArg("-debug", false));
5757

58-
if (!fs::is_directory(GetDataDir(false))) {
58+
if (!CheckDataDirOption()) {
5959
tfm::format(std::cerr, "Error: Specified data directory \"%s\" does not exist.\n", gArgs.GetArg("-datadir", "").c_str());
6060
return false;
6161
}

0 commit comments

Comments
 (0)