diff --git a/src/wallet/walletutil.cpp b/src/wallet/walletutil.cpp --- a/src/wallet/walletutil.cpp +++ b/src/wallet/walletutil.cpp @@ -16,6 +16,11 @@ } } else { path = GetDataDir(); + // If a wallets directory exists, use that, otherwise default to + // GetDataDir + if (fs::is_directory(path / "wallets")) { + path /= "wallets"; + } } return path;