1 suggestion
Earlier concerns neither republished nor resolved: 1 suggestion. See the Run archive for their assessments.
Optional improvements
[suggestion] · Batch pruning tests do not cover gaps in the selected files
Both new tests retain only a higher-numbered populated file, so their assertions do not distinguish exact membership from pruning the interval between selected file numbers.
Location: src/test/blockmanager_tests.cpp:151 (head).
Details and suggested fix
The bitmap currently checks exact membership, but the batch test prunes {file0, file1} and the manual-path test selects the same prefix, leaving only file2 above it. Filling the bitmap between the selected endpoints after validating them would still satisfy both tests. Production selectors can skip height-ineligible files, including when NORMAL and ASSUMED block files interleave during assumeutxo background validation. Reuse the three-file fixture by pruning {file0, file2} and checking that tip1 retains its block/undo flags, nFile, nDataPos, and nUndoPos, that file1's file-info size remains nonzero, and that tip1 stays out of the dirty set. Make tip1/file1 the survivor in later checks and use {file1, file2 + 1} for the mixed out-of-range case. The bitmap accepts the current cursor file file2, and file2 + 1 remains out of range, so this needs no additional mining.
Earlier concerns
Earlier reports raised these, with the titles and severities shown there. This review neither republished nor resolved them.
- [suggestion]: The status guard's file-zero rationale is undocumented (earlier report)