These are unrelated to ztxs and should be -debug

This commit is contained in:
Duke
2025-08-22 21:21:15 -04:00
parent 04ec2be8c8
commit aa69b87505

View File

@@ -271,13 +271,13 @@ bool CCoinsViewDB::GetStats(CCoinsStats &stats) const {
bool CBlockTreeDB::WriteBatchSync(const std::vector<std::pair<int, const CBlockFileInfo*> >& fileInfo, int nLastFile, const std::vector<CBlockIndex*>& blockinfo) { bool CBlockTreeDB::WriteBatchSync(const std::vector<std::pair<int, const CBlockFileInfo*> >& fileInfo, int nLastFile, const std::vector<CBlockIndex*>& blockinfo) {
CDBBatch batch(*this); CDBBatch batch(*this);
if (fZdebug) if (fDebug)
fprintf(stderr, "%s: Writing block files\n", __FUNCTION__); fprintf(stderr, "%s: Writing block files\n", __FUNCTION__);
for (const auto& it : fileInfo) { for (const auto& it : fileInfo) {
batch.Write(make_pair(DB_BLOCK_FILES, it.first), *it.second); batch.Write(make_pair(DB_BLOCK_FILES, it.first), *it.second);
} }
batch.Write(DB_LAST_BLOCK, nLastFile); batch.Write(DB_LAST_BLOCK, nLastFile);
if (fZdebug) if (fDebug)
fprintf(stderr, "%s: Writing block index\n", __FUNCTION__); fprintf(stderr, "%s: Writing block index\n", __FUNCTION__);
for (const auto& it : blockinfo) { for (const auto& it : blockinfo) {
std::pair<char, uint256> key = make_pair(DB_BLOCK_INDEX, it->GetBlockHash()); std::pair<char, uint256> key = make_pair(DB_BLOCK_INDEX, it->GetBlockHash());