aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet2.h
diff options
context:
space:
mode:
authorwarptangent <warptangent@inbox.com>2014-12-11 02:47:24 -0800
committerwarptangent <warptangent@inbox.com>2014-12-11 02:52:48 -0800
commit95eb944eade434f86908262932ea991236820a61 (patch)
tree5a2817e69a7ee71b04501e189b6849d506515e32 /src/wallet/wallet2.h
parentversion bump to 0.8.8.6 (diff)
downloadmonero-95eb944eade434f86908262932ea991236820a61.tar.xz
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.
Diffstat (limited to 'src/wallet/wallet2.h')
-rw-r--r--src/wallet/wallet2.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/wallet/wallet2.h b/src/wallet/wallet2.h
index f22c5d79d..dface0a7d 100644
--- a/src/wallet/wallet2.h
+++ b/src/wallet/wallet2.h
@@ -225,6 +225,12 @@ namespace tools
}
static void wallet_exists(const std::string& file_path, bool& keys_file_exists, bool& wallet_file_exists);
+ /*!
+ * \brief Check if wallet file path is valid format
+ * \param file_path Wallet file path
+ * \return Whether path is valid format
+ */
+ static bool wallet_valid_path_format(const std::string& file_path);
static bool parse_payment_id(const std::string& payment_id_str, crypto::hash& payment_id);