mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
db_lmdb: fix global index calculation off by 1
This finally fixes raw tx being accepted by the daemon.
This commit is contained in:
parent
57b80c541e
commit
ad8200a573
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue