Review report

bitcoin-core/gui-qml: PR #985

3 suggestions

Optional improvements

Link

[suggestion] · Live node information updates rebuild all 15 row delegates

While Node information is visible, delivered block and header updates replace the entire Repeater model instead of updating the values that changed, including during initial block download.

Location: qml/components/NodeInformationPopup.qml:29 (head).

Details and suggested fix

The new handler calls nodeInformationRows() on each relevant nodeInformationChanged delivery and replaces root.rows. Changing this array model recreates all 15 row delegates, including their layouts, text items and separators, and rebuilds the formatted date strings. The notification mailbox coalesces callbacks only until its queued delivery runs, so it does not limit repeated rebuilds while tips continue arriving. This is avoidable GUI-thread work, not a measured stall. Expose the rows through a stable list model and update changed values in place. Keep live updates, particularly the asynchronous information result that replaces the initial "Unknown" values after opening; returning to open-only population would lose that behavior.


Link

[suggestion] · Peer-action QML tests exercise duplicated application wiring

The QML harness copies the production refresh connections and omits unban acknowledgement, so its refresh assertions cannot detect changes confined to the application wiring, despite functional coverage of real ban and unban workflows.

Location: qml/bitcoin.cpp:768 (head).

Details and suggested fix

Production marks the ban list externally pending during peer actions, refreshes peers on success, finishes the external action with action == "ban", and acknowledges ban notifications on unbanFinished. The QML harness independently copies the first two connections but omits the acknowledgement link. Its refresh-count assertions therefore test the copy. Functional tests reduce this gap but do not pin the ordering: an already-published ban notification can mask a missing explicit post-ban refresh by setting m_refresh_requested, whereas finishPeerAction clears an unpublished notification before emitting completion. Extract these connections into one helper used by both run() and the harness, adding acknowledgement support to the mock node. Preserve synchronous unban acknowledgement before finishUnban queues its final read.


Link

[suggestion] · Onboarding startup still resolves settings synchronously before the worker read

The constructor's worker read repeats the GUI-thread routing probe, while the FIFO regression test bypasses that probe and therefore does not cover responsiveness of the production startup entry path.

Location: qml/models/onboardingoptionsmodel.cpp:43 (head).

Details and suggested fix

RunPreInitOnboarding calls ResolveOnboardingStartupStatus synchronously through ShouldShowPreInitOnboarding, before constructing the model or onboarding engine. When the profile can be read, this reaches configuration reads and, when enabled and present, the settings file. The constructor then submits the same resolution to its worker. Both the synchronous probe and duplicate resolution predate this PR. With the FIFO used by blockedConfigReadKeepsGuiResponsiveAndRejectsStaleSelection, production startup would wait in the first probe before an onboarding window exists, rather than freeze a visible window. The test constructs the model directly and covers only the later resolution. Move the routing resolution to a worker behind a cancellable loading state and reuse its result in the model, preserving the routing decision and quit checks; cover that entry path as well. If that broader change is deferred, explicitly scope the test and responsiveness claim to re-resolution after the probe.


Coverage details