Provider refusals
write_verifier: Provider declined the request because of a cybersecurity restriction. Experiments remain incomplete; static verification can continue.
1 major finding · 8 minor findings · 1 suggestion
Findings
[major] · Onboarding carries edits into a different data-directory profile
Switching onboarding directories carries explicit prune and proxy edits into the newly selected profile, potentially pruning its blocks or disabling its configured proxy.
Location: src/qml/models/onboardingoptionsmodel.cpp:122 (head).
Details and suggested fix
For example, change a full-storage profile to Reduce storage, go Back, select an existing full node's directory, and continue to Start. Alternatively, toggle the proxy on and off before selecting a profile whose bitcoin.conf enables a proxy. setDataDir() refreshes the preview without clearing touched settings, and applyPreviewValuesPreservingTouched() retains those edits. prepareApplyToArgs() then attaches them to the new target, and finalization writes them to its settings.json. Only command-line settings are locked. This can enable pruning, prevent startup with txindex=1, disable an existing prune setting, or replace a configured proxy with a disabled override that permits direct peer connections and IP exposure. The user revisits the storage and connection pages and sees the carried values, but nothing identifies them as edits from the earlier directory.
Scope the draft to the resolved profile. When that profile changes, clear or separately retain its touched settings and reload the new profile's effective values. Add regressions for storage edits and proxy on/off edits followed by a directory switch.
[minor] · Onboarding commits settings.json before checking the directory lock
Like Widgets pruning, QML onboarding writes before locking, but now proxy and other settings can remain changed when another node holds the directory and this launch fails.
Location: src/qml/bitcoin.cpp:288 (head).
Details and suggested fix
If the user selects a directory held by a running node and completes onboarding, FinalizeStartupSettings() applies touched settings and qml_onboarded, then writes settings.json. Only the later baseInitialize() probes and acquires the directory locks. A lock failure exits without invoking finalization's rollback. The running node can therefore adopt these choices on its next restart, or overwrite them during a later settings write, despite this launch failing. Acquire and retain the directory locks before committing the onboarding changes. A probe alone leaves a race window. Add a locked-directory regression that verifies a failed launch leaves the settings file unchanged.
[minor] · Deferred NAT-PMP changes can execute after shutdown begins
Enabling NAT-PMP and quitting before the 200 ms callback fires can start an uninterrupted mapping thread during shutdown, causing a join hang or termination at process exit.
Location: src/qml/models/options_model.cpp:175 (head).
Details and suggested fix
applyRuntimeCoreChange() schedules m_node.mapPort() without canceling or suppressing it on requestedShutdown. When mapping was initially off, startShutdown() calls InterruptMapPort() before any mapping thread exists. The still-live options model can then execute its timer while the shutdown worker is stopping other services. If StopMapPort() follows, it joins a thread that never received an interrupt; if it already ran, the new thread can remain joinable at process exit. A delayed disable can also race with the worker's join because mapping operations are not serialized. Cancel or suppress pending runtime mapping work when shutdown begins, and serialize accepted mapping changes with shutdown.
[minor] · Block-clock history loading can abort when the chain shrinks
With RPC enabled, an authenticated concurrent invalidateblock during block-clock initialization can shrink the chain below the cached height and abort both the GUI and node.
Location: src/qml/models/chainmodel.cpp:83 (head).
Details and suggested fix
setTimeRatioListInitial() captures active_chain_height, then calls getBlockHash(height) separately for each height through that bound. Each backend call independently locks cs_main and asserts that the active-chain entry exists. InvalidateBlock() releases that lock between disconnections, so a later lookup can exceed the shortened chain. RPC is already callable when initialization completion starts this history load. The overlap is limited to loading the current 12-hour period; no unauthenticated peer trigger was found. Walk ancestry from a stable tip hash using fallible lookups, rather than indexing the mutable active chain against a cached height.
[minor] · Conflicting network flags escape startup error handling
bitcoin-qt -regtest -testnet reaches an uncaught std::runtime_error before configuration error handling and terminates instead of returning a controlled startup failure.
Location: src/qml/bitcoin.cpp:250 (head).
Details and suggested fix
The argument to SetupChainQSettings() evaluates gArgs.GetChainTypeString() before RunPreInitOnboarding() and common::InitConfig(). GetChainArg() throws when more than one enabled network selector is supplied, and the entry-point wrapper directly returns QmlGuiMain() without a catch. Later preview and configuration handlers cannot catch this earlier exception. Only command-line selections trigger this path because bitcoin.conf has not yet been read. Catch the early selection error, report it through the startup error path, and return EXIT_FAILURE. Add a regression for conflicting command-line network flags.
[minor] · Existing writable data directories require a writable parent
Onboarding rejects an accessible, writable existing data directory when its parent is not writable, and can also treat a saved directory with those permissions as unusable.
Location: src/qml/datadir.cpp:138 (head).
Details and suggested fix
ValidateCustomDataDir() checks an existing target's type, accessibility, and writability but does not return success afterward. It then unconditionally requires parent_info.isWritable(). This rejects valid POSIX layouts such as a user-owned data directory beneath an administrator-owned mount point. selectCustomDataDir() reports the parent error, while startup's custom_datadir_usable check reopens onboarding for the saved path. Return success after validating an existing target, and check the nearest existing ancestor only when the target still needs to be created.
[minor] · Block-clock history retains disconnected blocks after a reorganization
A reorganization within the current 12-hour period leaves orphaned timestamps in the block-clock model, and an invalidation can append an ancestor's timestamp again.
Location: src/qml/models/chainmodel.cpp:44 (head).
Details and suggested fix
ChainSyncModel emits only setTimeRatioList(block_time) for each tip notification. ChainModel::setTimeRatioList() filters times before the meridian and otherwise appends, without using block height or identity to remove disconnected entries. Consequently, a replacement tip does not remove the old tip's entry. The stale history remains until initialization rebuilds it or the next meridian clears it. This establishes incorrect model contents; the rendered result was not observed. Retain block identity with each entry and reconcile the history against the new tip.
[minor] · -min is accepted but ignored by the QML window
The QML bitcoin-qt accepts -min but shows its normal main window, including when an existing autostart entry supplies the flag.
Location: src/qml/guiargs.cpp:13 (head).
Details and suggested fix
SetupQmlGuiArgs() advertises -min as “Start minimized,” but the QML startup path never consumes it. MainWindow.qml restores geometry and unconditionally sets visible = true; the tray controller does not apply a startup-minimized policy either. Windows shortcuts created by the Widgets GUI include -min, so replacing their target executable with the QML app changes login behavior. Keep accepting the compatibility argument and apply its minimized or tray-hidden startup state before exposing the window.
[minor] · Removing legacy strDataDir loses the Widgets directory selection
After QML directory persistence or reset removes legacy strDataDir, a downgraded or side-by-side Widgets GUI falls back to its default directory rather than the user's custom profile.
Location: src/qml/legacy_settings_migration.cpp:514 (head).
Details and suggested fix
ApplyGuiCleanup(DataDirAndReset) removes the legacy directory key, and ClearLegacyGuiSettings() invokes that cleanup during reset and directory persistence. Widgets Intro::showIfNeeded() still reads strDataDir from the legacy store, so its next launch can open the default profile or show the chooser. Wallets and blocks remain in the custom directory; no files or funds are lost. Preserve the legacy directory choice and record an explicit QML default choice or migration marker. Simply retaining the old key is insufficient because QML currently falls back to it whenever its own directory key is absent. If downgrade and side-by-side compatibility are intentionally unsupported, document this behavior in the release notes.
Optional improvements
[suggestion] · Build guides still associate BUILD_GUI with Widgets QR support
The Unix and macOS guides still associate -DBUILD_GUI=ON with QR support, although it now selects QML and the QR dependency belongs to BUILD_GUI_LEGACY.
Location: CMakeLists.txt:105 (head).
Details and suggested fix
CMakeLists.txt now separates the QML bitcoin-qt from bitcoin-qt-legacy, and gates WITH_QRENCODE and WITH_DBUS on the legacy option. The QML build requires the Qt Qml, Quick, and QuickControls2 components. Both guides still tell users to install libqrencode, pass -DBUILD_GUI=ON, and expect QR encoding. Update their GUI sections to distinguish the two build options, features, and dependencies.