We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b2a8371 commit 94fe141Copy full SHA for 94fe141
src/util/system.cpp
@@ -443,11 +443,10 @@ const fs::path& ArgsManager::GetDataDir(bool net_specific) const
443
} else {
444
path = GetDefaultDataDir();
445
}
446
- if (net_specific)
447
- path /= fs::PathFromString(BaseParams().DataDir());
448
449
- if (fs::create_directories(path)) {
450
- // This is the first run, create wallets subdirectory too
+ fs::create_directories(path / "wallets");
+ if (net_specific && !BaseParams().DataDir().empty()) {
+ path /= fs::PathFromString(BaseParams().DataDir());
451
fs::create_directories(path / "wallets");
452
453
0 commit comments