mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-16 13:01:19 +02:00
Merge pull request #6856
d3b09f6 Do not allow blockfile pruning during reindex. (Alex Morcos)
This commit is contained in:
commit
c719cefc41
2 changed files with 2 additions and 2 deletions
|
|
@ -1899,7 +1899,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()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue