mirror of
https://github.com/monero-project/monero.git
synced 2024-12-14 04:16:32 +02:00
wallet2: fill key image and pubkey maps when importing outputs
This commit is contained in:
parent
5fe363cd22
commit
f8066116dd
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user