aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core/blockchain.cpp
diff options
context:
space:
mode:
authorThomas Winget <tewinget@gmail.com>2014-12-14 15:20:41 -0500
committerwarptangent <warptangent@inbox.com>2015-01-04 19:39:43 -0800
commitc50cd956743838dc256a1fe81722c80898cd2ec9 (patch)
treed09a6071e5fdbe7b40bd80db90d5d9af246ffc7d /src/cryptonote_core/blockchain.cpp
parentupdate comments to reflect changed code (diff)
downloadmonero-c50cd956743838dc256a1fe81722c80898cd2ec9.tar.xz
Fixes a bug with getting output metadata from BlockchainDB
Thanks to moneromooo-monero for spotting the bug.
Diffstat (limited to 'src/cryptonote_core/blockchain.cpp')
-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 87be9d566..c4767765d 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(tx_in_to_key.amount, i);
+ auto output_index = m_db->get_output_tx_and_index_from_global(i);
// get tx that output is from
auto tx = m_db->get_tx(output_index.first);