aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2014-12-20 18:36:22 +0000
committerwarptangent <warptangent@inbox.com>2015-01-04 19:39:43 -0800
commitad8200a5731e462cf191e49570359283d760b372 (patch)
tree3f9aff3ba74e2aeae89d01266a50af774e4cfa7b /src
parentdb_lmdb: remove redundant checks (diff)
downloadmonero-ad8200a5731e462cf191e49570359283d760b372.tar.xz
db_lmdb: fix global index calculation off by 1
This finally fixes raw tx being accepted by the daemon.
Diffstat (limited to 'src')
-rw-r--r--src/cryptonote_core/BlockchainDB_impl/db_lmdb.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cryptonote_core/BlockchainDB_impl/db_lmdb.cpp b/src/cryptonote_core/BlockchainDB_impl/db_lmdb.cpp
index ee5c0fa9b..5b71dcf08 100644
--- a/src/cryptonote_core/BlockchainDB_impl/db_lmdb.cpp
+++ b/src/cryptonote_core/BlockchainDB_impl/db_lmdb.cpp
@@ -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();