mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
Merge pull request #19 from warptangent/fix_tx_output
Obtain tx hash and tx output index from amount and output offset
This commit is contained in:
commit
7374b81b23
1 changed files with 1 additions and 1 deletions
|
@ -170,7 +170,7 @@ bool Blockchain::scan_outputkeys_for_indexes(const txin_to_key& tx_in_to_key, vi
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
// get tx hash and output index for output
|
// 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
|
// get tx that output is from
|
||||||
auto tx = m_db->get_tx(output_index.first);
|
auto tx = m_db->get_tx(output_index.first);
|
||||||
|
|
Loading…
Reference in a new issue