aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas Winget <tewinget@gmail.com>2014-12-31 16:40:22 -0500
committerwarptangent <warptangent@inbox.com>2015-01-04 19:39:44 -0800
commit7374b81b23f906979972eddd6642ec67faccb711 (patch)
treeba366f96cf2529300e998aa0da09464288f32347 /src
parentMerge pull request #18 from moneromooo-monero/blockchain (diff)
parentObtain tx hash and tx output index from amount and output offset (diff)
downloadmonero-7374b81b23f906979972eddd6642ec67faccb711.tar.xz
Merge pull request #19 from warptangent/fix_tx_output
Obtain tx hash and tx output index from amount and output offset
Diffstat (limited to 'src')
-rw-r--r--src/cryptonote_core/blockchain.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cryptonote_core/blockchain.cpp b/src/cryptonote_core/blockchain.cpp
index c4767765d..87be9d566 100644
--- a/src/cryptonote_core/blockchain.cpp
+++ b/src/cryptonote_core/blockchain.cpp
@@ -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);