Skip to content

Commit af9f987

Browse files
committed
doc: update NeedsRedownload() comment
1 parent 9f1aa88 commit af9f987

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/chain.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ class CBlockIndex
178178
//! Verification status of this block. See enum BlockStatus
179179
//!
180180
//! Note: this value is modified to show BLOCK_OPT_WITNESS during UTXO snapshot
181-
//! load to avoid the block index being spuriously rewound.
181+
//! load to avoid a spurious startup failure requiring -reindex.
182182
//! @sa NeedsRedownload
183183
//! @sa ActivateSnapshot
184184
uint32_t nStatus GUARDED_BY(::cs_main){0};

src/validation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6014,7 +6014,7 @@ util::Result<void> ChainstateManager::PopulateAndValidateSnapshot(
60146014
index = snapshot_chainstate.m_chain[i];
60156015

60166016
// Fake BLOCK_OPT_WITNESS so that Chainstate::NeedsRedownload()
6017-
// won't ask to rewind the entire assumed-valid chain on startup.
6017+
// won't ask for -reindex on startup.
60186018
if (DeploymentActiveAt(*index, *this, Consensus::DEPLOYMENT_SEGWIT)) {
60196019
index->nStatus |= BLOCK_OPT_WITNESS;
60206020
}

0 commit comments

Comments
 (0)