mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-27 03:33:27 -03:00
doc: Tidy up nMinDiskSpace comment
nMinDiskSpace was removed in commit
04cca33094
Also, remove incorrect doxygen comment.
See https://doxygen.bitcoincore.org/class_c_chain.html#aeb563751f7362d4308c7c2cb35b834a5
This commit is contained in:
parent
16d698cdcf
commit
fa5a886fa3
2 changed files with 1 additions and 4 deletions
|
@ -5,9 +5,6 @@
|
||||||
|
|
||||||
#include <chain.h>
|
#include <chain.h>
|
||||||
|
|
||||||
/**
|
|
||||||
* CChain implementation
|
|
||||||
*/
|
|
||||||
void CChain::SetTip(CBlockIndex *pindex) {
|
void CChain::SetTip(CBlockIndex *pindex) {
|
||||||
if (pindex == nullptr) {
|
if (pindex == nullptr) {
|
||||||
vChain.clear();
|
vChain.clear();
|
||||||
|
|
|
@ -2043,7 +2043,7 @@ bool CChainState::FlushStateToDisk(
|
||||||
fDoFullFlush = (mode == FlushStateMode::ALWAYS) || fCacheLarge || fCacheCritical || fPeriodicFlush || fFlushForPrune;
|
fDoFullFlush = (mode == FlushStateMode::ALWAYS) || fCacheLarge || fCacheCritical || fPeriodicFlush || fFlushForPrune;
|
||||||
// Write blocks and block index to disk.
|
// Write blocks and block index to disk.
|
||||||
if (fDoFullFlush || fPeriodicWrite) {
|
if (fDoFullFlush || fPeriodicWrite) {
|
||||||
// Depend on nMinDiskSpace to ensure we can write block index
|
// Ensure we can write block index
|
||||||
if (!CheckDiskSpace(gArgs.GetBlocksDirPath())) {
|
if (!CheckDiskSpace(gArgs.GetBlocksDirPath())) {
|
||||||
return AbortNode(state, "Disk space is too low!", _("Disk space is too low!"));
|
return AbortNode(state, "Disk space is too low!", _("Disk space is too low!"));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue