aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet2.h
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2016-12-20 17:46:58 +0200
committerRiccardo Spagni <ric@spagni.net>2016-12-20 17:46:58 +0200
commit6847999fb84d153e56731a9e006b13e9962d80ea (patch)
tree99b245b60e0b8e917874ffac57e2dce3984d1d14 /src/wallet/wallet2.h
parentMerge pull request #1469 (diff)
parentRefactored password prompting for wallets (diff)
downloadmonero-6847999fb84d153e56731a9e006b13e9962d80ea.tar.xz
Merge pull request #1472
2bddb8eb Refactored password prompting for wallets (Lee Clagett)
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 9f4180c0d..54e26008b 100644
--- a/src/wallet/wallet2.h
+++ b/src/wallet/wallet2.h
@@ -103,6 +103,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);