2 minor findings · 2 suggestions
Earlier concerns neither republished nor resolved: 1 major finding. See the Run archive for their assessments.
Findings
[minor] · Startup pruning races with IPC block submission
On a pruned node with -ipcbind, an authorized mining client's block submission can race with the startup write to the non-atomic pruning flag.
Location: src/init.cpp:2023 (head).
Details and suggested fix
Removing the outer cs_main lock leaves PruneAndFlush() assigning m_check_for_pruning before FlushStateToDisk() acquires that mutex. This startup call runs when the block files are indexed. IPC listeners already run, and setChainstateLoaded(true) unblocks MakeMining() before index initialization, wallet loading, and this prune. A client's submitBlock() can therefore reach block acceptance and its FlushStateToDisk() call, which reads the same flag under cs_main, while the startup thread writes it without synchronization. Restore cs_main around the startup call. This establishes a conditional C++ data race; no observed production occurrence or sanitizer report was identified, so functional production impact remains unconfirmed.
[minor] · Implicit rollback exports have no deprecation period
The retained export RPC rejects the documented dumptxoutset utxo.dat rollback form without a deprecation period, breaking callers that rely on implicit target selection.
Location: src/rpc/blockchain.cpp:3128 (head).
Details and suggested fix
The old help advertised this positional form, and the implementation selected the highest height from GetAvailableSnapshotHeights(). The new branch instead returns RPC_INVALID_PARAMETER, while explicit rollback=<height|hash> exports remain supported. Developer Notes calls for a -deprecatedrpc compatibility option and a grace period of at least one major release; the release note announces immediate rejection without either. For the mergeable follow-up, retain implicit selection and its small amount of height data behind a deprecation flag for one major release, and direct callers to the explicit option before removing that compatibility path. If an exception to the removal process is intended, state it explicitly. This sequencing concern does not object to showing the final interface in the demo.
Optional improvements
[suggestion] · Unfinished-snapshot recovery instructions bypass GUI translation
The new startup recovery error is wrapped in Untranslated(), so bitcoin-qt displays English instructions regardless of the selected GUI language.
Location: src/validation.cpp:5362 (head).
Details and suggested fix
When chainstate_snapshot/base_blockhash exists, Flatten() throws the user-facing recovery instructions as a std::runtime_error. InitAndLoadChainstate() converts this to a fatal Untranslated() message, and bitcoin-qt displays its unchanged translated field. Unlike the related block-index incompatibility error, this text is never marked with _(). Keep the guard before BlockManager construction, but carry a bilingual_str through a typed exception that the initialization catch returns as the error. Mark the recovery text with _() and preserve its English original for logs and kernel callers.
[suggestion] · Validity-continuity guard lacks its snapshot-recovery rationale
The local comment explains only the genesis exception, not that this scan catches snapshot validation flags left in the shared block index that -reindex-chainstate cannot clear.
Location: src/node/chainstate.cpp:71 (head).
Details and suggested fix
Deleting an unfinished snapshot's directory removes the marker checked by Flatten(), but leaves its validation flags in the shared block index. -reindex-chainstate wipes the coins database, not that index, so it cannot remove the validity discontinuity rejected here. The compatibility test explicitly expects this scan to reject both ordinary startup and -reindex-chainstate after directory deletion, then checks recovery with full -reindex. Add this rationale next to the genesis exception so the guard and its full-reindex recovery requirement remain understandable locally. The release note already explains the distinction for users.
Earlier concerns
Earlier reports raised these, with the titles and severities shown there. This review neither republished nor resolved them.
- [major]: Keep the RPC deprecation window