aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core
diff options
context:
space:
mode:
authorThomas Winget <tewinget@gmail.com>2015-02-20 21:09:32 -0500
committerThomas Winget <tewinget@gmail.com>2015-02-20 21:09:32 -0500
commit6f1c4b4c2c78c930fe30ed648e855a6ce55f7dcd (patch)
tree244c30ca1fc06cbb7e056bbdc06b49e4c24f9188 /src/cryptonote_core
parentMerge remote-tracking branch 'monero-project/master' into blockchain (diff)
downloadmonero-6f1c4b4c2c78c930fe30ed648e855a6ce55f7dcd.tar.xz
Bounds error, should fix #27
Diffstat (limited to 'src/cryptonote_core')
-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 4fa16b23e..ce568151c 100644
--- a/src/cryptonote_core/BlockchainDB_impl/db_lmdb.cpp
+++ b/src/cryptonote_core/BlockchainDB_impl/db_lmdb.cpp
@@ -1053,7 +1053,7 @@ uint64_t BlockchainLMDB::height() const
LOG_PRINT_L3("BlockchainLMDB::" << __func__);
check_open();
- return m_height;
+ return m_height - 1;
}