mirror of
https://github.com/monero-project/monero.git
synced 2024-11-18 10:01:02 +00:00
Merge pull request #1278
43ec2d0
Wallet API: added walletExists logic (Jacob Brydolf)
This commit is contained in:
commit
b06c1abaa6
1 changed files with 7 additions and 1 deletions
|
@ -81,6 +81,12 @@ bool WalletManagerImpl::closeWallet(Wallet *wallet)
|
||||||
|
|
||||||
bool WalletManagerImpl::walletExists(const std::string &path)
|
bool WalletManagerImpl::walletExists(const std::string &path)
|
||||||
{
|
{
|
||||||
|
bool keys_file_exists;
|
||||||
|
bool wallet_file_exists;
|
||||||
|
tools::wallet2::wallet_exists(path, keys_file_exists, wallet_file_exists);
|
||||||
|
if(keys_file_exists){
|
||||||
|
return true;
|
||||||
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue