We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 886e0d7 commit cf06062Copy full SHA for cf06062
src/wallet/walletutil.cpp
@@ -100,5 +100,10 @@ WalletLocation::WalletLocation(const std::string& name)
100
101
bool WalletLocation::Exists() const
102
{
103
- return fs::symlink_status(m_path).type() != fs::file_not_found;
+ fs::path path = m_path;
104
+ // For the default wallet, check specifically for the wallet.dat file
105
+ if (m_name.empty()) {
106
+ path = fs::absolute("wallet.dat", m_path);
107
+ }
108
+ return fs::symlink_status(path).type() != fs::file_not_found;
109
}
0 commit comments