7 minor findings · 4 suggestions
Earlier concerns neither republished nor resolved: 12 minor findings · 9 suggestions. See the Run archive for their assessments.
Findings
[minor] · Node-only builds retain WalletManager while excluding WalletModel
Source inspection indicates that ENABLE_WALLET=OFF leaves unresolved wallet dependencies in the node-only link; no build was run.
Location: CMakeLists.txt:141 (head).
Details and suggested fix
The exclusion list still names qml/walletregistry, but its replacement, qml/walletmanager.cpp and qml/walletmanager.h, remains in the recursive source glob. The header declares the Q_OBJECT class OpenWalletListModel, so AUTOMOC includes its metaobject in the shared moc compilation unit. That brings in the implementation, which references WalletModel::whenNativeDrained and WalletModel::shutdownFinished, while qml/models/walletmodel.cpp is explicitly excluded. Replace the stale exclusion with walletmanager, audit the other renamed wallet-only sources, and add a node-only configure-and-link test. The default wallet-enabled configuration is unaffected.
[minor] · Superseded clipboard and import operations are never deleted
With a nonempty clipboard, repeated recipient edits retain cancelled PaymentImportOperation children and their view-state entries until the controller is destroyed.
Location: qml/models/sendimportcontroller.cpp:231 (head).
Details and suggested fix
On an active, available Send page, checkClipboard() disconnects and cancels the old check, then creates another operation parented to the controller. PaymentImportOperation::cancel() closes its backend actor and clears snapshots, but never schedules QObject deletion. Its BitcoinUriModel::view_states entry therefore remains too. cancelImport() and cancelAll() discard operations in the same way. Call deleteLater() after disconnecting and cancelling each superseded operation, and test that repeated rechecks leave a bounded number of operation children.
[minor] · Queued SignOnly work cannot be withdrawn before signing starts
Cancelling pending SignOnly work cannot prevent queued unlocking and signing; no production cancellation specifically within that window was confirmed.
Location: qml/models/walletsendoperation.cpp:211 (head).
Details and suggested fix
WalletSendOperation::start() creates request.consent and m_consent only for Submit. In a non-prompt state, cancel() can only withdraw that token, so it does nothing for SignOnly. Both SendTask::beginOnDomain() and ExecuteSignOnly() check withdrawal only when a token exists. A cancelled queued task can therefore materialize its captured passphrase, unlock the wallet and call fillPSBT after cancellation. Nothing is broadcast, and the reviewed transaction terms remain pinned. Give Sign-only work an operation-owned revocation token and check it before unlocking or signing. A queue-held cancellation test should assert that neither operation runs.
[minor] · A refused fee-bump commit becomes permanently Uncertain
A narrow race can leave a definitively uncommitted replacement marked Uncertain, preventing re-preparation even after a status recheck.
Location: qml/walletbump.cpp:206 (head).
Details and suggested fix
At the pinned Core revision, every non-OK return from feebumper::CommitTransaction() occurs before wallet.CommitTransaction(). If the original confirms or gains a descendant between the app's scope check and Core's precondition check, commitBumpTransaction() returns false without committing the replacement. walletbump::Execute() converts this to Error::Commit, which publishCommit() maps to Uncertain. Neither status rechecking nor reset() clears that phase, and preparation refuses it. Map a false return to Failed or NeedsRevalidation; reserve Uncertain for outcomes such as exceptions where commitment cannot be determined.
[minor] · Receive keeps hiding a type after the wallet gains support for it
A refused receive type remains hidden for the wallet opening even after an active descriptor makes that type available.
Location: qml/walletopening.cpp:539 (head).
Details and suggested fix
Session::markReceiveTypeUnavailable() only inserts into the negative cache. The can-get-addresses notification queues a metadata refresh, but ReadMetadata() republishes the same cached set, and WalletModel::availableReceiveAddressTypes() continues excluding it. Thus importing an active descriptor for a previously refused type does not restore that choice until the wallet is reopened. Invalidate or re-probe the negative cache when address-generation capabilities change, and add a refuse-then-import regression test.
[minor] · Blank -addresstype= overrides the app's Receive default
With no saved preference, -addresstype= selects Core's implicit default instead of the app's Taproot default; no in-tree configuration producing the blank value was found.
Location: qml/walletopening.cpp:43 (head).
Details and suggested fix
ReadMetadata() and Session::preferredReceiveType() treat gArgs.IsArgSet("-addresstype") as evidence that the user chose a type. Core instead applies the option only when GetArg("-addresstype", "") is nonempty. An empty value therefore leaves Core's implicit default in place but makes both GUI paths treat that default as an explicit override. For a Taproot-capable wallet with no saved choice, Receive no longer follows the app's intended fallback. Use Core's nonempty-value check at both sites.
[minor] · Activity's final scroll clamp restores the unclamped position
When settled content shrinks below the held position, onContentYChanged undoes the timer's final clamp before the hold is cleared.
Location: qml/pages/wallet/ActivityListPage.qml:383 (head).
Details and suggested fix
holdPositionTimer.onTriggered calls restorePosition(true) before clearing heldContentY. Assigning the clamped contentY invokes onContentYChanged, which calls restorePosition(false) while the hold still exists and writes the unclamped position back. The timer then clears the hold, leaving its final clamp ineffective and potentially leaving the list beyond its settled content until another adjustment. Compute the clamped target, clear the hold, and only then assign contentY.
Optional improvements
[suggestion] · The test-only PSBT pipeline has a different signing policy
The test-only psbtwork Sign/Broadcast pipeline omits CommitsToAllOutputs, leaving a second verification policy beside the live external-signer paths.
Location: qml/psbtwork.cpp:413 (head).
Details and suggested fix
psbtwork::Execute(Kind::Sign) accepts external-signer wallets and verifies returned terms, fees and signatures, but neither it nor the Broadcast branch calls psbtsignatures::CommitsToAllOutputs(). Cryptographic signature verification does not itself require signatures to cover every output. The current UI does not reach this pipeline; its signing callers are tests. Remove the unused Sign/Broadcast pipeline, or share the post-signing validation with the live paths, so the same hardening does not have to be maintained in two divergent implementations.
[suggestion] · Captured creation passphrases outlive their last use
secretinput::Input retains an unwiped plaintext QString, and wallet creation keeps it for the service lifetime rather than releasing it after encryption.
Location: qml/secretinput.cpp:34 (head).
Details and suggested fix
Input::materialize() cleanses its temporary UTF-8 buffer, but Input has no wiping destructor and retains the original QString. Wallet creation assigns the same captured input to both credential fields, then keeps them in const Request m_request, including after completion. Keep consumable credentials outside the immutable request and release them after their last use. Consider secure storage or cleansing exclusively owned storage as well. QML-side copies remain outside this guarantee, so this shortens plaintext retention rather than promising its complete removal.
[suggestion] · Several payment and PSBT import errors bypass translation
File, drop and malformed-PSBT errors use QStringLiteral, so they remain English even after translation catalogs are regenerated.
Location: qml/paymentimport.cpp:97 (head).
Details and suggested fix
paymentimport::ReadSource() constructs user-facing errors such as the invalid-path, unreadable-file and malformed-PSBT messages with QStringLiteral. These strings reach the operation error and import status without translation, and lupdate does not extract them. Use QCoreApplication::translate() with a fixed context, or return error codes and translate them in PaymentImportOperation.
[suggestion] · The cleanup-worker test can hang on an early assertion failure
An early failure in cleanupUtilityWorkerIsSeparateFromIoAndJoinedOnStop() returns without releasing the worker, so test teardown blocks instead of reporting the failure.
Location: test/test_executor.cpp:323 (head).
Details and suggested fix
The cleanup callback blocks in release_future.wait(), but several QCOMPARE and QVERIFY checks can return before release_cleanup.set_value(). Because executor is destroyed before the promises, its teardown joins a worker that still waits for the unreleased barrier. Ensure every early-return path releases the barrier before a waiting future or executor is destroyed, or capture the results and assert only after releasing and joining the worker.
Earlier concerns
Earlier reports raised these, with the titles and severities shown there. This review neither republished nor resolved them.
- [suggestion]: The #1063 fix is attributed to a helper-only commit (earlier report)
- [suggestion]: The startup rewrite removes error routing that a later commit restores (earlier report)
- [suggestion]: The signer-substitution commit adds a helper but no production enforcement (earlier report)
- [suggestion]: Private descriptor imports remain outside console redaction (earlier report)
- [minor]: New-password normalization disagrees with unlock input (earlier report)
- [minor]: A stale fee-policy failure can clear a newer read's pending state (earlier report)
- [suggestion]: Preparatory fix commits claim behavior supplied by later workflow commits (earlier report)
- [minor]: The console labels implicit wallet RPCs as node commands (earlier report)
- [minor]: Send omits partial-spend avoidance in
avoid_reusewallets (earlier report) - [suggestion]: Speed Up omits the
avoid_reusepolicy now enforced by Send (earlier report) - [minor]: The new threads drop the documented macOS stack safeguard (earlier report)
- [minor]: Failed signer approval can switch Save transaction back to PSBT v2 (earlier report)
- [minor]: Sign-only enables broadcast readiness without a policy assessment (earlier report)
- [suggestion]: PSBT import automation bypasses the production import owner (earlier report)
- [minor]: Hiding Activity loses the user's list position (earlier report)
- [minor]: Queued configuration resets appear clean to settings navigation (earlier report)
- [minor]: Timer polls restart unfinished receipt rechecks (earlier report)
- [minor]: Device approval stalls other wallets' Core-lane work (earlier report)
- [suggestion]: Coin-row ordering duplicates the existing
IndexedSequenceimplementation (earlier report) - [suggestion]: Speed Up suppresses anti-fee-sniping refresh for ordinary replacements (earlier report)
- [minor]: Proxy endpoints are validated trimmed but saved untrimmed (earlier report)
Background
Ralph's summary of historical context for the behaviour affected by this change. The historical record reviewed here is incomplete.
Documented decisions
Keeping wallet work off the GUI thread addresses lock contention and potentially long wallet scans, not merely expensive calculations. Earlier Core work moved transaction preprocessing to the notification side while its locks were already held. Earlier QML work explicitly proposed cached GUI getters, coalesced refresh requests, and rejection of stale replies.
This explains the direction of the model extraction and background readers. The base already had an owned-result BackendExecutor; the head expands execution into shared workers and serial queues. Responsiveness, freshness, and notification ownership are separate historical requirements rather than interchangeable benefits of adding threads.
The historical Qt design separated a QML-bindable QObject's thread affinity from the thread executing initialization and shutdown. In gui#434, João Barbosa explicitly cited QML's inability to connect or bind to objects in another thread as a reason to keep InitExecutor associated with the GUI thread while dispatching its work elsewhere.
This provides historical motivation for GUI-facing models and controllers backed by worker-owned services, rather than moving every exposed QObject onto a worker. The head architecture retains dedicated initialization work while exposing application state to QML. This historical explanation is not itself proof of the current Qt 6 contracts.
A fixed wallet identity per page was deliberately preferred over a shared page guarded by context tokens. The author of #1049 explained that every popup otherwise had to opt into invalidation, and a missed guard could redirect backup, export, draft replacement, or signing. Retained per-wallet views cost additional memory but preserve wallet-specific state and support future side-by-side presentation.
The head's one-wallet-for-life scope and WalletPageController's rejection of rebinding continue this safety boundary. They are not merely naming or navigation conventions: they connect the wallet the user reviewed with the wallet on which a later action executes. The historical memory measurements were author-reported and are not measurements of this tree.
PSBT input-data policy has historically balanced signer security, compatibility, and transport size. Core #19215 added full previous transactions for SegWit inputs to accommodate hardware-wallet changes while retaining witness_utxo for older software. Core's own signer intentionally continued accepting witness-only SegWit inputs. A participant objected that carrying full previous transactions made printed-QR offline signing substantially harder.
This explains why imported PSBTs can legitimately contain different combinations of input metadata and why signing compatibility does not establish an authenticated aggregate fee. It supplies context for the GUI's separate fee-proof layer without implying that all PSBT consumers historically required the same evidence.
Source 1 · Source 2 · Source 3
An external signer's response is not intended to authorize different transaction terms. The upstream #36114 proposal preserves the original transaction by merging signer responses, rejecting changes such as removed outputs, reduced values, or changed scripts while permitting omission of unnecessary PSBT fields. It explicitly disclaims protection against a malicious helper process running as the same user.
At the unchanged Core pin, ExternalSigner::SignTransaction replaces the supplied PSBT with the decoded response. The GUI's new MatchesUnsignedTransaction helper expresses invariants over version, locktime, outputs, input outpoints, and sequences. The historical rationale distinguishes transaction-response hardening from process isolation; the upstream proposal must not be assumed present in this pinned dependency.
PSBT file exports have a different compatibility audience from tightly coupled external-signer handoffs. Core issue #36518 documented failures when GUI-created v2 PSBTs reached pre-v32 nodes. In #36539, a proposed version-selection control was dropped to simplify backporting past string freeze, while later discussion deliberately retained v2 for external signers for consistency with RPC.
This directly explains the file-export compatibility motivation behind the version-0 export change. It also explains why that motivation does not automatically require changing imported documents or signer handoffs. The inspected discussion records the distinction, but the final GUI export implementation was not reached.
Source 1 · Source 2 · Source 3 · Source 4 · Source 5
Console history protection historically balanced secrecy against useful and predictable recall. In Core #8877, maintainers considered individual-argument masking brittle. Keeping a placeholder also mattered because silently omitting a sensitive command could make Up-Enter execute an older command instead. Nested commands exposed why filtering only the outer command was insufficient; a later author update reported replacing all parameters of filtered nested calls.
These constraints explain why the console changes concern transient parsing, displayed requests, and recall behavior rather than simply clearing a history list. They also explain the usefulness of retaining a redacted command record without retaining its secret arguments. No conclusion about the completeness of the new parser follows from this history alone.
Source 1 · Source 2 · Source 3 · Source 4
Pruning trades retained historical data for disk space, which constrains wallet recovery. Core #6645 explicitly distinguished full rescanning, which is incompatible with missing pruned data, from useful imports that need no rescan. It also identified bounded rescanning within the retained block depth as a possible refinement.
This is the historical basis for warning when a wallet is closed on a pruned node: later catch-up may need history the node no longer retains. It explains a recoverability and bandwidth tradeoff, not loss of private keys or a guarantee that every closed wallet will require a full redownload.
Ralph's inferences
Wallet identity alone is insufficient for asynchronous UI ownership; the particular request or dialog opening also needs an identity. Separating an operation's lifetime from the visibility of its page is a structural response to that problem.
Earlier #990 discussion described a delayed deletion closing a newer request dialog, including the same request reopened, and reported numbering openings as the remedy. Earlier #986 deliberately allowed closing an import dialog while retaining its eventual result. The head architecture generalizes these pressures into controller-owned operations, with unstarted work cancelled and committed work retaining its outcome.
Source 1 · Source 2 · Source 3
A useful fee estimate derived from PSBT metadata is not necessarily evidence of the fee the user is authorizing. The new GUI fee-proof design separates those roles by tying authenticated input amounts and an approved fee to an exact unsigned transaction.
The base summary displays node::AnalyzePSBT's fee. At the unchanged Core pin, that analysis sums values returned by each input's GetUTXO. The head GUI analyzer instead checks full previous-transaction hashes or independently supplied verified outputs, rejects inconsistent claims, and checks that the proof still matches the reviewed transaction. This distinction follows from the inspected code; it is not attributed to an inspected historical proposal for this exact GUI design.
Unresolved disagreements
The inspected gui#434 record leaves open how much execution machinery QML should see. Ryan Ofsky argued that QML should request initialization and observe its result through a node or application object, not know about an executor. João Barbosa defended exposing bindable objects and discussed splitting a larger exposed object into smaller ones. The discussion was redirected to gui-qml#37.
This is directly relevant to separating the monolithic controllers into models, controllers, and backend services. It establishes a historical API-boundary tradeoff, but the inspected record does not establish a final resolution or historical endorsement of this PR's exact object model.