diff options
author | warptangent <warptangent@inbox.com> | 2014-12-27 06:40:17 -0800 |
---|---|---|
committer | warptangent <warptangent@inbox.com> | 2015-01-04 19:39:43 -0800 |
commit | c5c100c69b83242dae2ebfd88eaff2ff743e9b30 (patch) | |
tree | 5da936f1175d5b1d6e308622218771ff26a9ade1 /src | |
parent | Fixes a bug with getting output metadata from BlockchainDB (diff) | |
download | monero-c5c100c69b83242dae2ebfd88eaff2ff743e9b30.tar.xz |
Obtain tx hash and tx output index from amount and output offset
Fixes problem of obtaining incorrect outputs used for tx input.
Reverts to earlier intended behavior that was fixed in previous
commit's split of get_output_tx_and_index into two functions.
Diffstat (limited to 'src')
-rw-r--r-- | src/cryptonote_core/blockchain.cpp | 2 |
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); |