diff --git a/src/validation.cpp b/src/validation.cpp index b47b1d09ae1e9a..9d27a409bf146c 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -5633,7 +5633,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);