diff --git a/src/txdb.cpp b/src/txdb.cpp index 6a6f7c086..4d402d072 100644 --- a/src/txdb.cpp +++ b/src/txdb.cpp @@ -271,13 +271,13 @@ bool CCoinsViewDB::GetStats(CCoinsStats &stats) const { bool CBlockTreeDB::WriteBatchSync(const std::vector >& fileInfo, int nLastFile, const std::vector& blockinfo) { CDBBatch batch(*this); - if (fZdebug) + if (fDebug) fprintf(stderr, "%s: Writing block files\n", __FUNCTION__); for (const auto& it : fileInfo) { batch.Write(make_pair(DB_BLOCK_FILES, it.first), *it.second); } batch.Write(DB_LAST_BLOCK, nLastFile); - if (fZdebug) + if (fDebug) fprintf(stderr, "%s: Writing block index\n", __FUNCTION__); for (const auto& it : blockinfo) { std::pair key = make_pair(DB_BLOCK_INDEX, it->GetBlockHash());