aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet2.h
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-02-13 16:45:04 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-02-16 17:13:09 +0000
commit89ad162a3ff11629b2fae126a7e12b5d2fd49432 (patch)
tree9b8d96faa23171523b8bca7a49ea339132b32329 /src/wallet/wallet2.h
parentwallet2: speed up subaddress generation (by about a third) (diff)
downloadmonero-89ad162a3ff11629b2fae126a7e12b5d2fd49432.tar.xz
wallet2: remove unused m_subaddresses_inv
Diffstat (limited to 'src/wallet/wallet2.h')
-rw-r--r--src/wallet/wallet2.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wallet/wallet2.h b/src/wallet/wallet2.h
index e92abbc69..71302be09 100644
--- a/src/wallet/wallet2.h
+++ b/src/wallet/wallet2.h
@@ -780,7 +780,8 @@ namespace tools
if (ver < 20)
return;
a & m_subaddresses;
- a & m_subaddresses_inv;
+ std::unordered_map<cryptonote::subaddress_index, crypto::public_key> dummy_subaddresses_inv;
+ a & dummy_subaddresses_inv;
a & m_subaddress_labels;
a & m_additional_tx_keys;
if(ver < 21)
@@ -1087,7 +1088,6 @@ namespace tools
std::unordered_map<crypto::public_key, size_t> m_pub_keys;
cryptonote::account_public_address m_account_public_address;
std::unordered_map<crypto::public_key, cryptonote::subaddress_index> m_subaddresses;
- std::unordered_map<cryptonote::subaddress_index, crypto::public_key> m_subaddresses_inv;
std::vector<std::vector<std::string>> m_subaddress_labels;
std::unordered_map<crypto::hash, std::string> m_tx_notes;
std::unordered_map<std::string, std::string> m_attributes;