Skip to content

Commit

Permalink
Merge pull request monero-project#19 from warptangent/fix_tx_output
Browse files Browse the repository at this point in the history
Obtain tx hash and tx output index from amount and output offset
  • Loading branch information
tewinget committed Dec 31, 2014
2 parents e0e116e + 6f5fcd3 commit 5928b72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cryptonote_core/blockchain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ bool Blockchain::scan_outputkeys_for_indexes(const txin_to_key& tx_in_to_key, vi
try
{
// get tx hash and output index for output
auto output_index = m_db->get_output_tx_and_index_from_global(i);
auto output_index = m_db->get_output_tx_and_index(tx_in_to_key.amount, i);

// get tx that output is from
auto tx = m_db->get_tx(output_index.first);
Expand Down

0 comments on commit 5928b72

Please sign in to comment.