db_lmdb: fix global index calculation off by 1

This finally fixes raw tx being accepted by the daemon.
This commit is contained in:
moneromooo-monero 2014-12-20 18:36:22 +00:00 committed by warptangent
parent 57b80c541e
commit ad8200a573
1 changed files with 1 additions and 1 deletions

View File

@ -1304,9 +1304,9 @@ std::vector<uint64_t> BlockchainLMDB::get_tx_output_indices(const crypto::hash&
for (uint64_t i = 0; i < num_elems; ++i)
{
mdb_cursor_get(cur, &k, &v, MDB_NEXT_DUP);
mdb_cursor_get(cur, &k, &v, MDB_GET_CURRENT);
index_vec.push_back(*(const uint64_t *)v.mv_data);
mdb_cursor_get(cur, &k, &v, MDB_NEXT_DUP);
}
cur.close();