mirror of
https://github.com/monero-project/monero.git
synced 2025-05-29 07:51:14 -04:00
Repeat prompt for wallet path if invalid
simplewallet run without a wallet path argument should prompt again if an invalid path was entered. Validity here currently means the string isn't empty.
This commit is contained in:
parent
efad735145
commit
95eb944ead
3 changed files with 35 additions and 4 deletions
|
@ -633,6 +633,11 @@ void wallet2::wallet_exists(const std::string& file_path, bool& keys_file_exists
|
|||
wallet_file_exists = boost::filesystem::exists(wallet_file, ignore);
|
||||
}
|
||||
//----------------------------------------------------------------------------------------------------
|
||||
bool wallet2::wallet_valid_path_format(const std::string& file_path)
|
||||
{
|
||||
return !file_path.empty();
|
||||
}
|
||||
//----------------------------------------------------------------------------------------------------
|
||||
bool wallet2::parse_payment_id(const std::string& payment_id_str, crypto::hash& payment_id)
|
||||
{
|
||||
cryptonote::blobdata payment_id_data;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue