diff options
author | Ilya Kitaev <mbg033@gmail.com> | 2016-03-15 23:11:38 +0300 |
---|---|---|
committer | Ilya Kitaev <mbg033@gmail.com> | 2016-03-16 14:29:06 +0300 |
commit | 62606f11f50b4c68446d3f581c96d5505a0ad6ef (patch) | |
tree | c258047ddcbf349f853f82eb71ef74c5af7111bf /src/wallet/wallet2.h | |
parent | Wallet::address implemented (diff) | |
download | monero-62606f11f50b4c68446d3f581c96d5505a0ad6ef.tar.xz |
Wallet::store_to(path, password) implemented;
Diffstat (limited to 'src/wallet/wallet2.h')
-rw-r--r-- | src/wallet/wallet2.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/wallet/wallet2.h b/src/wallet/wallet2.h index 2835815b7..f798f404d 100644 --- a/src/wallet/wallet2.h +++ b/src/wallet/wallet2.h @@ -212,6 +212,12 @@ namespace tools void write_watch_only_wallet(const std::string& wallet_name, const std::string& password); void load(const std::string& wallet, const std::string& password); void store(); + /*! + * \brief store_to - stores wallet to another file(s), deleting old ones + * \param path - path to the wallet file (keys and address filenames will be generated based on this filename) + * \param password - password to protect new wallet (TODO: probably better save the password in the wallet object?) + */ + void store_to(const std::string &path, const std::string &password); /*! * \brief verifies given password is correct for default wallet keys file |