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.
This commit is contained in:
moneromooo-monero 2015-12-04 22:25:00 +00:00
parent 2bed53cb6b
commit 3bf35e14e3
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3

View file

@ -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;