Skip to content

Commit 8651e84

Browse files
committed
mdbx: use mdbx for blockstorageindex
1 parent 0ed59ae commit 8651e84

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/node/blockstorage.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ static constexpr uint8_t DB_LAST_BLOCK{'l'};
5353

5454
BlockTreeDB::BlockTreeDB(DBParams db_params) :
5555
m_db_params(std::move(db_params)),
56-
m_db(std::make_unique<CDBWrapper>(m_db_params)) { }
56+
m_db(std::make_unique<MDBXWrapper>(m_db_params)) { }
5757

5858
bool BlockTreeDB::ReadBlockFileInfo(int nFile, CBlockFileInfo& info)
5959
{
@@ -81,7 +81,7 @@ bool BlockTreeDB::ReadLastBlockFile(int& nFile)
8181

8282
bool BlockTreeDB::WriteBatchSync(const std::vector<std::pair<int, const CBlockFileInfo*>>& fileInfo, int nLastFile, const std::vector<const CBlockIndex*>& blockinfo)
8383
{
84-
CDBBatch batch(*m_db);
84+
MDBXBatch batch(*m_db);
8585
for (const auto& [file, info] : fileInfo) {
8686
batch.Write(std::make_pair(DB_BLOCK_FILES, file), *info);
8787
}

0 commit comments

Comments
 (0)