mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-12 11:19:08 -05:00
doc: update NeedsRedownload() comment
This commit is contained in:
parent
9f1aa88d4d
commit
af9f987893
2 changed files with 2 additions and 2 deletions
|
@ -178,7 +178,7 @@ public:
|
||||||
//! Verification status of this block. See enum BlockStatus
|
//! Verification status of this block. See enum BlockStatus
|
||||||
//!
|
//!
|
||||||
//! Note: this value is modified to show BLOCK_OPT_WITNESS during UTXO snapshot
|
//! Note: this value is modified to show BLOCK_OPT_WITNESS during UTXO snapshot
|
||||||
//! load to avoid the block index being spuriously rewound.
|
//! load to avoid a spurious startup failure requiring -reindex.
|
||||||
//! @sa NeedsRedownload
|
//! @sa NeedsRedownload
|
||||||
//! @sa ActivateSnapshot
|
//! @sa ActivateSnapshot
|
||||||
uint32_t nStatus GUARDED_BY(::cs_main){0};
|
uint32_t nStatus GUARDED_BY(::cs_main){0};
|
||||||
|
|
|
@ -6014,7 +6014,7 @@ util::Result<void> ChainstateManager::PopulateAndValidateSnapshot(
|
||||||
index = snapshot_chainstate.m_chain[i];
|
index = snapshot_chainstate.m_chain[i];
|
||||||
|
|
||||||
// Fake BLOCK_OPT_WITNESS so that Chainstate::NeedsRedownload()
|
// Fake BLOCK_OPT_WITNESS so that Chainstate::NeedsRedownload()
|
||||||
// won't ask to rewind the entire assumed-valid chain on startup.
|
// won't ask for -reindex on startup.
|
||||||
if (DeploymentActiveAt(*index, *this, Consensus::DEPLOYMENT_SEGWIT)) {
|
if (DeploymentActiveAt(*index, *this, Consensus::DEPLOYMENT_SEGWIT)) {
|
||||||
index->nStatus |= BLOCK_OPT_WITNESS;
|
index->nStatus |= BLOCK_OPT_WITNESS;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue