diff options
author | Riccardo Spagni <ric@spagni.net> | 2016-12-20 17:46:58 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2016-12-20 17:46:58 +0200 |
commit | 6847999fb84d153e56731a9e006b13e9962d80ea (patch) | |
tree | 99b245b60e0b8e917874ffac57e2dce3984d1d14 /src/wallet/wallet2.h | |
parent | Merge pull request #1469 (diff) | |
parent | Refactored password prompting for wallets (diff) | |
download | monero-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.h | 3 |
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); |