Browse Source

Log when trimming block solutions

pull/384/head
Duke 5 months ago
parent
commit
2a2391f0f9
  1. 3
      src/main.cpp

3
src/main.cpp

@ -3713,9 +3713,12 @@ bool static FlushStateToDisk(CValidationState &state, FlushStateMode mode) {
// Now that we have written the block indices to the database, we do not
// need to store solutions for these CBlockIndex objects in memory.
// cs_main must be held here.
uint32_t nTrimmed = 0;
for (CBlockIndex *pblockindex : vBlocks) {
pblockindex->TrimSolution();
++nTrimmed;
}
LogPrintf("%s: trimmed %d solutions from block index\n", __func__, nTrimmed);
}
// Finally remove any pruned files
if (fFlushForPrune)

Loading…
Cancel
Save