wallet2: fill key image and pubkey maps when importing outputs

This commit is contained in:
moneromooo-monero 2016-11-15 21:14:49 +00:00
parent 5fe363cd22
commit f8066116dd
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3

View file

@ -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);
}