aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet2.h
diff options
context:
space:
mode:
authorLee Clagett <code@leeclagett.com>2016-12-17 18:07:15 -0500
committerLee Clagett <code@leeclagett.com>2016-12-19 20:00:43 -0500
commit2bddb8ebee4b25f2f73e6476dd1019459d8a1aca (patch)
treecc1edfe5d2b0ff388f68db03ce82bcec71ee201a /src/wallet/wallet2.h
parentMerge pull request #1464 (diff)
downloadmonero-2bddb8ebee4b25f2f73e6476dd1019459d8a1aca.tar.xz
Refactored password prompting for wallets
Diffstat (limited to 'src/wallet/wallet2.h')
-rw-r--r--src/wallet/wallet2.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/wallet/wallet2.h b/src/wallet/wallet2.h
index c3381730b..40c339e67 100644
--- a/src/wallet/wallet2.h
+++ b/src/wallet/wallet2.h
@@ -104,6 +104,9 @@ namespace tools
static bool has_testnet_option(const boost::program_options::variables_map& vm);
static void init_options(boost::program_options::options_description& desc_params);
+ //! \return Password retrieved from prompt. Logs error on failure.
+ static boost::optional<password_container> password_prompt(const bool is_new_wallet);
+
//! Uses stdin and stdout. Returns a wallet2 if no errors.
static std::unique_ptr<wallet2> make_from_json(const boost::program_options::variables_map& vm, const std::string& json_file);