diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-11-15 21:14:49 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-11-16 09:22:18 +0000 |
commit | f8066116dd9afad2f092593795678d569bc0cceb (patch) | |
tree | eece4d7921ff706d7cb1987ff788e16ec69f5294 /src/wallet/wallet2.cpp | |
parent | wallet: cast indices to string in logs to be nice to CLANG (diff) | |
download | monero-f8066116dd9afad2f092593795678d569bc0cceb.tar.xz |
wallet2: fill key image and pubkey maps when importing outputs
Diffstat (limited to '')
-rw-r--r-- | src/wallet/wallet2.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index b0175ef4a..bf7c1537a 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -4794,6 +4794,8 @@ size_t wallet2::import_outputs(const std::vector<tools::wallet2::transfer_detail THROW_WALLET_EXCEPTION_IF(in_ephemeral.pub != boost::get<cryptonote::txout_to_key>(td.m_tx.vout[td.m_internal_output_index].target).key, error::wallet_internal_error, "key_image generated ephemeral public key not matched with output_key at index " + boost::lexical_cast<std::string>(i)); + m_key_images[td.m_key_image] = m_transfers.size(); + m_pub_keys[td.get_public_key()] = m_transfers.size(); m_transfers.push_back(td); } |