4 minor findings · 2 suggestions
Findings
[minor] · Saved dismissals suppress later occurrences of operational warnings
After a user dismisses an operational warning, a later occurrence with identical text stays hidden across restarts; a synced node can show no warning indicator, although Node details still offers restoration.
Location: qml/models/nodemodel.cpp:716 (head).
Details and suggested fix
dismissWarnings saves exact text in QSettings, and setWarnings never retires a dismissal when Core clears that warning. Pinned Core clears and reuses fixed text for LARGE_WORK_INVALID_CHAIN and CLOCK_OUT_OF_SYNC, so a separate incident can match an earlier dismissal. All warning categories use this filtering. If no other warning is active, the recurrence contributes neither a banner nor the ordinary warning link, and the synced status uses its success tone. Node details retains a dismissed-warning restoration link, but the main view gives no indication of the recurrence. This requires previously dismissing the same text: dismissing a pre-release notice does not pre-dismiss an unseen fork warning. Retire saved dismissals when a completed warning refresh observes that the warning has cleared, without treating the initial empty list before the first startup refresh as recovery. That preserves dismissal across restarts for an ongoing notice without suppressing a later incident.
[minor] · Short timestamp intervals disappear from the layered dial
With layeredRings enabled, the 1.2° gap removes the entire segment for adjacent timestamps at most 144 seconds apart, so recent blocks can have no segment, including the newest block.
Location: qml/components/blockclockdial.cpp:735 (head).
Details and suggested fix
paintLayeredBlocks adds 0.6 / 360 to each interval's start, subtracts the same amount from its end, and skips the arc when end <= start. On the 43,200-second face, that consumes 144 seconds. Equal timestamps and future timestamps clamped to the current time can likewise produce no arc. Other arcs retain their recency colors because age still uses list position, but a skipped newest interval has no age-zero segment. The base painter explicitly coalesced intervals too short to draw while retaining their block counts; the layered path bypasses that handling. Coalesce short intervals while preserving their counts and add cases for sub-144-second and equal timestamps. This follows from source inspection; the rendered appearance was not checked.
[minor] · Last-block age uses retained history rather than the active tip
The new age caption uses the maximum retained timestamp rather than the active tip's time, so it can describe an ancestor or disappear once all cached blocks age out.
Location: qml/models/blockclockmodel.cpp:132 (head).
Details and suggested fix
updateLastBlockAge subtracts the maximum cached timestamp from the current time and clamps the result to zero. Block timestamps are not monotonic, so an ancestor with a later timestamp supplies the age displayed beneath the tip's height; a future-dated ancestor can keep the caption at “Last block mined just now” after the tip's timestamp has aged. The cache also drops timestamps before period_start - 2 * PERIOD_SECONDS. If a node remains connected and synced without new blocks or advancing headers, the cache can empty after 24–36 hours and the caption falls back to “Block height” instead of showing the stale tip's age. Compute the age from NodeModel.blockTipTime, retaining the minute refresh, and reserve the bounded history cache for the dial.
[minor] · -resetguisettings leaves dismissals saved for a config-selected network
When bitcoin.conf selects a different network from the command line, -resetguisettings leaves the new nodeDismissedWarnings preference intact because the inherited effective-network cleanup only removes window keys.
Location: qml/models/settings_keys.h:18 (head).
Details and suggested fix
Startup selects the command-line network's application name and calls ResetGuiSettings, which clears that QSettings store. prepare_node reads the configuration later and opens the resolved network's store, but its reset block removes only fHideTrayIcon, fMinimizeToTray and fMinimizeOnClose. The application then selects that resolved settings identity before constructing NodeModel, which reloads the surviving dismissals. For example, existing signet dismissals survive a reset when bitcoin.conf contains signet=1 but the command line does not select signet. This contradicts the flag's documented reset-all behavior for the new preference. Remove SettingsKeys::DISMISSED_WARNINGS in the effective-network reset block as well.
Optional improvements
[suggestion] · NodeBanner close semantics are split across three commits
The final banner behavior is correct, but its introduction saves warning dismissals across restarts and two later fixups replace that policy, making reviewers reconstruct the shipped contract across three commits.
Location: qml/components/NodeBanner.qml:25 at 47e8f6b7e095 (commit) (commit).
Details and suggested fix
9e46d11bc2da93b1708ddd2625355dd4458bef9d introduces NodeBanner.qml with warning closes calling status.dismissWarnings(activeWarnings). fe1a449a505556c294a5e11ad7178a3961623724 adds recurrence handling through onMessageChanged. Then 47e8f6b7e0959829719d5be99188f656ac2eb63b, relative to direct parent 5aa2a3a1dec7c30be1e34bfd41b45ce00d6c2849, replaces persistent dismissal with session-only message hiding. Fold these two fixups and their tst_nodefeedback.qml assertions into the introduction so the banner arrives with its final dismissal contract. Carry the offline fixture reset from 8b68cfd2485bd27c12b2749116d1c4da48bb8a3a with the offline recurrence test: that test leaves the mock offline, and the introduction's fixture does not yet reset it. This is a series-review improvement, not a defect in the final tree.
[suggestion] · Per-network settings initialization is separated from its new reader
The final ordering is correct, but fd99111 introduces a constructor-time settings read before selecting the resolved network's store; dd6524a supplies the required ordering later in the series.
Location: qml/bitcoin.cpp:733 at dd6524a85838 (commit) (commit).
Details and suggested fix
fd9911131deeedb6a922ba22e38a817e81bb8f9b makes the NodeModel constructor load saved dismissals from a default QSettings, while run() still calls setupChainQSettings after constructing that model. If bitcoin.conf selects a different network from the command line, those intermediate commits load dismissals from the wrong store even though subsequent writes use the resolved one. dd6524a858382fa82b61dff1efc860cd84d8256c moves settings initialization before construction using the upper-cased gArgs network string, equivalent to ChainModel.networkName without depending on ChainModel construction. Fold that move into fd9911131deeedb6a922ba22e38a817e81bb8f9b so the new settings read and its initialization prerequisite can be reviewed together. This removes an incorrect intermediate ordering without changing the final tree.