diff options
author | Jaquee <jaquee.monero@gmail.com> | 2017-10-22 16:21:44 +0200 |
---|---|---|
committer | Jaquee <jaquee.monero@gmail.com> | 2017-10-29 15:26:22 +0100 |
commit | a46c1eed8c5725be47d7e12eedf5f296c08fa2c2 (patch) | |
tree | 936cd16e8dd291af54fb277778527ae269326aa6 /src/wallet/wallet2.h | |
parent | Wallet API: default values for account and subaddr index (diff) | |
download | monero-a46c1eed8c5725be47d7e12eedf5f296c08fa2c2.tar.xz |
Wallet2: Don't throw when subaddress label doesn't exist
Diffstat (limited to '')
-rw-r--r-- | src/wallet/wallet2.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wallet/wallet2.h b/src/wallet/wallet2.h index 26680c3da..8b44aea9e 100644 --- a/src/wallet/wallet2.h +++ b/src/wallet/wallet2.h @@ -467,8 +467,8 @@ namespace tools size_t get_num_subaddresses(uint32_t index_major) const { return index_major < m_subaddress_labels.size() ? m_subaddress_labels[index_major].size() : 0; } void add_subaddress(uint32_t index_major, const std::string& label); // throws when index is out of bound void expand_subaddresses(const cryptonote::subaddress_index& index); - std::string get_subaddress_label(const cryptonote::subaddress_index& index) const; // throws when index is out of bound - void set_subaddress_label(const cryptonote::subaddress_index &index, const std::string &label); // throws when index is out of bound + std::string get_subaddress_label(const cryptonote::subaddress_index& index) const; + void set_subaddress_label(const cryptonote::subaddress_index &index, const std::string &label); /*! * \brief Tells if the wallet file is deprecated. */ |