diff options
Diffstat (limited to 'plugins/Dbx_mdbx/src/dbmodulechain.cpp')
-rw-r--r-- | plugins/Dbx_mdbx/src/dbmodulechain.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/Dbx_mdbx/src/dbmodulechain.cpp b/plugins/Dbx_mdbx/src/dbmodulechain.cpp index aa2427348a..e25c85a0b3 100644 --- a/plugins/Dbx_mdbx/src/dbmodulechain.cpp +++ b/plugins/Dbx_mdbx/src/dbmodulechain.cpp @@ -27,8 +27,9 @@ int CDbxMDBX::InitModules() {
txn_ptr_ro trnlck(m_txn_ro);
cursor_ptr_ro cursor(m_curModules);
-
- MDBX_val key, data;
+
+ uint32_t iHash = 0;
+ MDBX_val key = { &iHash, sizeof(iHash) }, data;
while (mdbx_cursor_get(cursor, &key, &data, MDBX_NEXT) == MDBX_SUCCESS) {
uint32_t iMod = *(uint32_t*)key.iov_base;
const char *szMod = (const char*)data.iov_base;
|