mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-04-15 10:07:41 +02:00
Do not allow blockfile pruning during reindex.
Also clarify startup message.
Github-Pull: #6856
Rebased-From: d3b09f6bac
This commit is contained in:
committed by
Wladimir J. van der Laan
parent
fc7f0ee28c
commit
dfe55bdc32
@@ -2000,7 +2000,7 @@ bool static FlushStateToDisk(CValidationState &state, FlushStateMode mode) {
|
||||
std::set<int> setFilesToPrune;
|
||||
bool fFlushForPrune = false;
|
||||
try {
|
||||
if (fPruneMode && fCheckForPruning) {
|
||||
if (fPruneMode && fCheckForPruning && !fReindex) {
|
||||
FindFilesToPrune(setFilesToPrune);
|
||||
fCheckForPruning = false;
|
||||
if (!setFilesToPrune.empty()) {
|
||||
|
||||
Reference in New Issue
Block a user