diff --git a/src/chain.cpp b/src/chain.cpp index 7c36457f023864..0cc75ecaa6647a 100644 --- a/src/chain.cpp +++ b/src/chain.cpp @@ -13,9 +13,6 @@ std::string CBlockIndex::ToString() const pprev, nHeight, hashMerkleRoot.ToString(), GetBlockHash().ToString()); } -/** - * CChain implementation - */ void CChain::SetTip(CBlockIndex *pindex) { if (pindex == nullptr) { vChain.clear(); diff --git a/src/validation.cpp b/src/validation.cpp index 79b1b81dce3953..68016b88497764 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -2710,7 +2710,7 @@ bool CChainState::FlushStateToDisk( fDoFullFlush = (mode == FlushStateMode::ALWAYS) || fCacheLarge || fCacheCritical || fEvoDbCacheCritical || fPeriodicFlush || fFlushForPrune; // Write blocks and block index to disk. if (fDoFullFlush || fPeriodicWrite) { - // Depend on nMinDiskSpace to ensure we can write block index + // Ensure we can write block index if (!CheckDiskSpace(gArgs.GetBlocksDirPath())) { return AbortNode(state, "Disk space is too low!", _("Disk space is too low!")); }