3 minor findings · 2 suggestions
Earlier concerns neither republished nor resolved: 1 major finding · 1 suggestion. See the Run archive for their assessments.
Findings
[minor] · Legacy proxy and listen settings are ignored under -nosettings
With -nosettings and unmigrated legacy QSettings, startup now ignores saved proxy and listen choices instead of aborting, so a proxy configured only through those GUI keys can be bypassed.
Location: src/qt/optionsmodel.cpp:766 (head).
Details and suggested fix
The early return precedes every setOption call, so retained keys such as addrProxy, fUseProxy, and fListen never reach rw_settings. Startup consequently uses the remaining configuration or defaults. Without another proxy configuration, ordinary outgoing connections can connect directly and expose the user's IP. Base instead threw during migration before networking started. The startup write-error dialog explicitly suggests -nosettings, making this combination reachable through the suggested recovery path. The prevalence of users with these unmigrated keys is unknown.
Run the migration into memory even when persistence is disabled, but retain each legacy key unless its writes succeed. Use clearWriteFailed() and writeFailed() around the migration calls rather than relying solely on setOption's return, since recursive ProxyIP writes do not propagate that result. Extend disabledSettings to assert both the effective in-memory value and retention of the legacy key.
[minor] · The intro silently leaves its prune choice unsaved under -nosettings
Choosing pruning in the intro under -nosettings now applies without a persistence warning, which can make a later unpruned start fail with -reindex advice.
Location: src/qt/optionsmodel.cpp:60 (head).
Details and suggested fix
SetPruneTargetGB calls forceSetting("prune", new_value) before discarding the new result from UpdateRwSetting. Under -nosettings, that write returns false where base threw, so startup proceeds with pruning enabled for this process only. The new warning belongs to the options dialog and does not cover this intro path. Once the run has pruned block files, a subsequent start without a persistent prune setting or -prune fails the pruned-database check. Supplying -prune restores access without reindexing. Warn from the intro flow when its choice cannot be persisted, for example by explaining that the user must keep prune=N in bitcoin.conf. Production occurrence of this combination is not established.
[minor] · A recovered save does not restore the restart-required notice
After a transient write failure, saving a live option can persist an earlier restart-only change without marking a restart as required.
Location: src/qt/optionsmodel.cpp:701 (head).
Details and suggested fix
For example, a failed DatabaseCache write leaves the requested dbcache value in rw_settings, but the new success gate skips setRestartRequired(true). If storage recovers and the user changes MapPortNatpmp, its successful write serializes the entire map, including dbcache, without requesting a restart. Resubmitting the unchanged cache value does not help because changed() compares against that retained in-memory value. Base set the restart flag on the original edit. Remember unsaved restart-only changes and promote the restart requirement when a subsequent whole-map write succeeds. Add a failure-then-recovery test followed by a live-option save; the new tests keep persistence disabled or unwritable throughout.
Optional improvements
[suggestion] · The write-failure warning blurs saved settings and active settings
The warning can suggest that failed changes remain active until restart, although restart-only edits are not active and a later successful save can still persist them.
Location: src/qt/optionsdialog.cpp:386 (head).
Details and suggested fix
For a failed proxy edit, the model retains the requested value while networking continues using the startup proxy. Reopening the dialog displays that requested value without a persistent restart label because the write failed. The edit-time restart warning and proxy reachability indicators mitigate the ambiguity, but “will be lost on restart” does not explain that the change has not taken effect. It also promises future loss even though a later successful write saves the whole rw_settings map. Use wording such as “Some settings could not be saved to disk. Changes requiring a restart have not taken effect.” This distinguishes persistence from application without promising that recovery is impossible.
[suggestion] · The dialog's write-failure warning has no test coverage
The new model assertions would remain unchanged if the dialog's warning were removed, leaving the user-visible reporting path unprotected.
Location: src/qt/test/optiontests.cpp:118 (head).
Details and suggested fix
disabledSettings and unwritableSettings call setOption and inspect writeFailed() directly. Neither exercises the clearWriteFailed() → mapper->submit() → warning sequence in on_okButton_clicked. Keep those model tests and add a dialog test that changes a mapped option with persistence disabled or unwritable, clicks OK, and checks the warning. ConfirmMessage in src/qt/test/util.cpp already captures and dismisses a QMessageBox using a timer. Include a writable control with a previously set failure flag to verify that submission clears stale failures rather than showing a false warning.
Earlier concerns
Earlier reports raised these, with the titles and severities shown there. This review neither republished nor resolved them.
- [major]: Migration deletes legacy settings even when persistence fails
- [suggestion]: Include
-prevwrites insetOption's success tracking (earlier report)