diff --git a/src/common/db_backend_lmdb.cpp b/src/common/db_backend_lmdb.cpp index 6dfb1eea..75e60ce4 100644 --- a/src/common/db_backend_lmdb.cpp +++ b/src/common/db_backend_lmdb.cpp @@ -291,6 +291,10 @@ namespace tools if (res == MDB_NOTFOUND) return false; + if (res != MDB_SUCCESS) + { + return false; + } CHECK_AND_ASSERT_MESS_LMDB_DB(res, false, "Unable to mdb_get, h: " << h << ", ks: " << ks); res_buff.assign((const char*)data.mv_data, data.mv_size); diff --git a/src/currency_core/blockchain_storage.cpp b/src/currency_core/blockchain_storage.cpp index 1f9b8f41..ace87e70 100644 --- a/src/currency_core/blockchain_storage.cpp +++ b/src/currency_core/blockchain_storage.cpp @@ -281,6 +281,8 @@ bool blockchain_storage::init(const std::string& config_folder, const boost::pro CHECK_AND_ASSERT_MES(res, false, "Unable to init db container"); res = m_db_aliases.init(BLOCKCHAIN_STORAGE_CONTAINER_ALIASES); CHECK_AND_ASSERT_MES(res, false, "Unable to init db container"); + res = m_db_assets.init(BLOCKCHAIN_STORAGE_CONTAINER_ASSETS); + CHECK_AND_ASSERT_MES(res, false, "Unable to init db container"); res = m_db_addr_to_alias.init(BLOCKCHAIN_STORAGE_CONTAINER_ADDR_TO_ALIAS); CHECK_AND_ASSERT_MES(res, false, "Unable to init db container"); res = m_db_per_block_gindex_incs.init(BLOCKCHAIN_STORAGE_CONTAINER_GINDEX_INCS);