diff --git a/src/validation.cpp b/src/validation.cpp index 5da3387ad296f..6549487a8680f 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -5634,7 +5634,7 @@ Chainstate& ChainstateManager::InitializeChainstate(CTxMemPool* mempool) // We have to destruct before this call leveldb::DB in order to release the db // lock, otherwise `DestroyDB` will fail. See `leveldb::~DBImpl()`. - const bool destroyed = DestroyDB(path_str); + const bool destroyed = MDBXWrapper::DestroyDB(path_str); if (!destroyed) { LogPrintf("error: leveldb DestroyDB call failed on %s\n", path_str);