aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2015-12-04 22:25:00 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2015-12-04 22:25:00 +0000
commit3bf35e14e3b9a21e4a2b5fbb1dd27ca5b6b8a6f1 (patch)
tree2a2c441a76027aab398d94cb4ef4c95f493b33d4 /src
parentMerge pull request #515 (diff)
downloadmonero-3bf35e14e3b9a21e4a2b5fbb1dd27ca5b6b8a6f1.tar.xz
db_bdb: read 32 bit heights from keys
Keys in Berkeley DB are 32 bits. We don't want to read random bits in the high part.
Diffstat (limited to 'src')
-rw-r--r--src/blockchain_db/berkeleydb/db_bdb.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/blockchain_db/berkeleydb/db_bdb.cpp b/src/blockchain_db/berkeleydb/db_bdb.cpp
index da68ff40c..486b63a3e 100644
--- a/src/blockchain_db/berkeleydb/db_bdb.cpp
+++ b/src/blockchain_db/berkeleydb/db_bdb.cpp
@@ -588,7 +588,7 @@ bool BlockchainBDB::for_all_blocks(std::function<bool(uint64_t, const crypto::ha
bdb_cur cur(DB_DEFAULT_TX, m_blocks);
- Dbt_copy<uint64_t> k;
+ Dbt_copy<uint32_t> k;
Dbt_safe v;
bool ret = true;
int result;