Wallet API: added walletExists logic

This commit is contained in:
Jacob Brydolf 2016-10-30 15:34:50 +01:00
parent 83b0511731
commit 43ec2d002a
No known key found for this signature in database
GPG key ID: DE46246550D2F3C5

View file

@ -81,6 +81,12 @@ bool WalletManagerImpl::closeWallet(Wallet *wallet)
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;
}