From 5a4f099540750c5bf9c610b4550bc4e8cf25f176 Mon Sep 17 00:00:00 2001 From: Ilya Kitaev Date: Fri, 11 Mar 2016 17:05:36 +0300 Subject: Wallet::setPassword() method for wallet2_api --- src/wallet/wallet2.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/wallet/wallet2.h') diff --git a/src/wallet/wallet2.h b/src/wallet/wallet2.h index 6c689d4ba..2835815b7 100644 --- a/src/wallet/wallet2.h +++ b/src/wallet/wallet2.h @@ -348,8 +348,11 @@ namespace tools bool get_tx_key(const crypto::hash &txid, crypto::secret_key &tx_key) const; + bool use_fork_rules(uint8_t version); + std::string get_wallet_file() const; + std::string get_keys_file() const; private: /*! * \brief Stores wallet information to wallet file. -- cgit v1.2.3 From 62606f11f50b4c68446d3f581c96d5505a0ad6ef Mon Sep 17 00:00:00 2001 From: Ilya Kitaev Date: Tue, 15 Mar 2016 23:11:38 +0300 Subject: Wallet::store_to(path, password) implemented; --- src/wallet/wallet2.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/wallet/wallet2.h') 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 -- cgit v1.2.3