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:
parent
2bed53cb6b
commit
3bf35e14e3
@ -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…
Reference in New Issue
Block a user