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.
pull/95/head
moneromooo-monero 9 years ago
parent 2bed53cb6b
commit 3bf35e14e3
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3

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

Loading…
Cancel
Save