9 minor findings · 3 suggestions
Earlier concerns neither republished nor resolved: 5 minor findings · 10 suggestions. See the Run archive for their assessments.
Findings
[minor] · Wallet creation retains plaintext credentials with the finished operation
Completed encrypted-wallet creation keeps its captured plaintext passphrase alive with the retained operation owner, extending exposure to anyone who separately gains access to process memory or a dump.
Location: qml/walletcreation.h:257 (head).
Details and suggested fix
WalletCreationController::create assigns the same captured input to request.passphrase and request.confirmation. WalletOperationModel clears its own references but moves the credentials into walletcreation::Owner, whose const Request m_request cannot release them. Owner::complete drops its self-reference, not the credentials, and the projection retains the owner until close(). materialize() cleanses only its temporary UTF-8 buffer, leaving the captured QString live. Keep consumable credentials outside the immutable request and release confirmation after validation and passphrase after its last native use, including failure and cancellation paths. Test that retaining an acknowledged result no longer retains either credential holder.
[minor] · Sign only enables broadcast without assessing node readiness
Completing an imported PSBT through Sign only enables Broadcast on signature completeness alone; node policy is checked only when the user subsequently attempts to broadcast it.
Location: qml/models/walletsendhandle.cpp:513 (head).
Details and suggested fix
ExecuteSignOnly never consults request.policy, but WalletModel::finishSendWork promotes a clean result with review->setCanBroadcast(m_node && !result->partial). The review retains its imported source, so QML offers Broadcast. By contrast, an already-signed import passes through Inspect, which assesses the finalized transaction before qualifying readiness. A locally completed PSBT can therefore be offered for broadcast while it is non-final or below relay policy, only to receive a rejection explanation on the next action. Run the same readiness assessment after successful Sign only before enabling Broadcast.
[minor] · Console says “without any wallet” while Core uses the sole loaded wallet
With no wallet selected and exactly one externally loaded wallet, the console describes a node target as having no wallet, although Core routes wallet RPCs to that loaded wallet.
Location: qml/components/SettingsView.qml:40 (head).
Details and suggested fix
SettingsView supplies a wallet RPC context only for the selected available wallet, and external adoption deliberately no longer selects one. With no selection, running loadwallet foo and then getbalance leaves the executor's URI empty. Pinned Core's GetWalletForJSONRPCRequest then uses GetDefaultWallet, which returns the sole loaded wallet, while the console describes this context as “Executing command without any wallet” and records a node target. Use wording that discloses Core's default-wallet fallback when no explicit wallet target was selected, and cover the one-externally-loaded-wallet case without selecting it in the picker.
[minor] · External-signer approval occupies the shared Core worker during the device wait
A configured signer helper waiting for device approval occupies the sole Lane::Core worker, delaying other wallets' reads and address generation even though the GUI thread remains responsive.
Location: qml/walletsend.cpp:968 (head).
Details and suggested fix
ApprovalOwner invokes ApproveInto through Session::perform, which posts to the wallet's Core queue. The application creates all those queues on Lane::Core, and the executor runs that lane on one sequential worker. ExecuteApproval calls wallet.fillPSBT with signing enabled, synchronously waiting for the configured signer process. Until that process returns, unrelated wallets' Core-lane work also waits and their displayed data becomes stale. Route device approval through the signer worker while preserving the wallet's ordering and action lease. A regression test should hold approval in one wallet while another wallet creates an address.
[minor] · Replaced payment-import projections are cancelled but never deleted
While Send is active and the clipboard contains text, recipient edits can accumulate cancelled PaymentImportOperation children and projection-registry entries until the page is destroyed.
Location: qml/models/sendimportmodel.cpp:231 (head).
Details and suggested fix
checkClipboard(), cancelImport() and cancelAll() disconnect and cancel superseded operations without deleting them. WalletImportTarget forwards the Send import model as owner, so BitcoinUriModel::createImport parents each new projection to that long-lived object and removes its registry entry only on QObject::destroyed. Cancellation closes the backend and releases the inspection payload, but leaves the QObject and registry entry behind. Address, amount, label and message edits can each repeat this allocation. Call deleteLater() on discarded projections after cancellation, and test repeated edits with deferred deletions processed so the child count stays bounded.
[minor] · A refused receive type stays hidden after the wallet gains support for it
Importing an active descriptor that enables a previously refused address type does not restore Receive's choice during the same wallet opening; closing and reopening the wallet recovers.
Location: qml/models/walletmodel.cpp:1661 (head).
Details and suggested fix
A “No <type> addresses available” response calls Session::markReceiveTypeUnavailable, which only inserts into m_unavailable_receive_types. Metadata refresh clears WalletModel's copy only to refill it from that session cache, and availableReceiveAddressTypes() and preferredReceiveType() continue skipping the entry. For example, trying Legacy in a SegWit-only descriptor wallet hides it even after importdescriptors adds an active Legacy descriptor. Add an invalidation path for in-session descriptor or capability changes instead of retaining refusals for the entire opening, and test importing a matching descriptor without unloading.
[minor] · A refused fee-bump commit is reported as an uncertain outcome
A precondition refusal in the narrow race before commitBumpTransaction is reported as uncertain and blocks reset and re-preparation, although Core submitted nothing; no production occurrence was observed.
Location: qml/walletbump.cpp:206 (head).
Details and suggested fix
walletbump::Execute maps a false commitBumpTransaction result to Error::Commit, and publishCommit maps that to Phase::Uncertain. Reset and re-preparation then remain blocked, while an outcome recheck only changes the message. In the pinned Core contract, a false return represents a non-OK result before wallet.CommitTransaction, such as the original becoming mined or gaining descendants between the last app-side checks and Core's precondition check. Map this definite refusal to Failed or NeedsRevalidation, reserving Uncertain for outcomes such as exceptions where submission is genuinely unknown.
[minor] · Slow receipt batches let polling restart unfinished rechecks
If more than 128 receipts remain unconfirmed and each batch outlasts the one-second poll, rechecks can repeatedly restart without publishing reconciled totals; this timing scenario was not measured in production.
Location: qml/walletreceipts.cpp:282 (head).
Details and suggested fix
Reader::poll() sets m_poll even during an active batch. The next plan() consumes it and calls restartRechecks(), resetting the cursor and skip set before reading at most 128 IDs. Meanwhile, ReceiptReconciliationModel starts its one-second timer on pending publications, so another poll can arrive during each slow batch. If those first receipts remain unconfirmed, subsequent batches keep rereading them and complete() continues withholding the reconciled snapshot. Receive retains its previous totals until the timing improves or the unconfirmed set shrinks. Coalesce polls while a recheck snapshot is unfinished rather than restarting its scan.
[minor] · “Use configuration” is not counted as a pending edit
Navigating from a previously clean editor before an admitted “Use configuration” result arrives skips the save/discard question because the editor still reports clean and idle; this does not automatically persist settings.
Location: qml/models/settingseditormodel.cpp:367 (head).
Details and suggested fix
editInput records admitted edits in m_inputs, making dirty() and busy() account for them before the worker publishes. useConfiguration only posts its reset command. During that lane latency, SettingsNavigationController::request sees !dirty() and navigates immediately, and Done can remain enabled. This establishes a skipped close question, not where the late draft ultimately ends up. Track admitted reset commands as pending edits until their projection is acknowledged, and test navigation while the editor lane is held.
Optional improvements
[suggestion] · New workers drop the explicit macOS stack-size guarantee
The previous 8 MiB macOS stack guarantee is gone from Core startup and shared workers; whether platform-default stacks suffice, particularly under sanitizers, remains unverified.
Location: qml/executor.cpp:26 (head).
Details and suggested fix
The base BackendExecutor called setStackSize(8 * 1024 * 1024) under Q_OS_MACOS, documenting that Core startup can exceed macOS's 512 KiB secondary-thread stack, especially under sanitizers. Base QmlInitExecutor used that executor for appInitMain. The replacement initialization thread and execution::Worker both construct ordinary std::threads without equivalent provisioning. Preserve the explicit macOS stack size through a shared thread helper, or establish that the previous requirement no longer applies before removing it. This is not an observed release-build overflow.
[suggestion] · Save after signer approval can still export a version 2 PSBT
Although v2 exports predate this PR, the new v0 rule still excludes app-created drafts after signer approval installs a v2 document, leaving the partial-signature hand-off incompatible with pre-v32 cosigners.
Location: qml/models/walletmodel.cpp:3136 (head).
Details and suggested fix
ExecuteApproval creates a new signer document as version 2, and publishApproval installs a verified returned document on the existing review. startPsbtAction(Save) uses the new v0 construction only when no document exists; otherwise it exports the attached document directly. Thus Save before approval and Save after a partial approval can have different compatibility for the same app-created draft. Apply the file-export version policy by draft origin while retaining signatures and metadata, leaving signer exchange and imported-document preservation unchanged. Add a Save-after-partial-approval test, or explicitly document this exception to the v0 export rule.
[suggestion] · Payment and PSBT import diagnostics are not translatable
App-authored import failure and recovery messages are passed through as English literals, so translators cannot provide localized guidance when an import fails.
Location: qml/paymentimport.cpp:97 (head).
Details and suggested fix
paymentimport::ReadSource builds diagnostics such as “The source is not a supported payment request or PSBT.” and “The import source is too large or could not be read.” with QStringLiteral. The owner's recovery messages use the same pattern, and the operation's error accessor and Send status display return that text unchanged. These strings are not marked for lupdate extraction. Use QCoreApplication::translate for app-authored diagnostics, keeping untrusted payment metadata separate from translation keys.
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]: Retained secret
QStringstorage is released without cleansing (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)
- [suggestion]: The review guide omits 19 post-rename commits (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]: 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 Activity hold timer undoes its own final scroll clamp (earlier report)
- [suggestion]: PSBT import automation bypasses the production import owner (earlier report)
- [minor]: Hiding Activity loses the user's list position (earlier report)
- [suggestion]: Coin-row ordering duplicates the existing
IndexedSequenceimplementation (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
Moving backend work away from the GUI thread historically addressed both lock contention and wallet-size-dependent latency. Core #5168 moved transaction preprocessing toward the notification side to avoid GUI-thread locking. GUI #342 subsequently identified address/transaction prefetch during model construction as expensive for large wallets. Earlier QML proposal #985 also separated cached presentation from queries and reserved an independent shutdown route so a blocked RPC would not make stop unusable.
This explains the pressure behind owned background operations, cached models and separate execution lanes. The historical goal was responsive presentation and reachable shutdown, not merely replacing one threading API with another.
Source 1 · Source 2 · Source 3 · Source 4
Wallet unload has historically required preserving lifetime across already-running notifications and queued GUI delivery. Core #18338 explicitly distinguished a validation-callback lifetime problem from destruction of a GUI wallet model while still in use; its GUI fix used a queued connection. The discussion also identified walletAdded deliveries still in flight when the model was deleted.
This is the historical constraint behind the refactor’s cancellation, retained operations and phased shutdown. Disconnecting a source and making a wallet unavailable are different from establishing that every consumer has finished. The new WalletPageController separately handles availability loss, destruction and attempted rebinding.
PSBT was designed to make partially signed transactions interoperable across different wallets and offline signers. That interoperability can conflict with adopting a newer format: Core issue #36518 described pre-v32 decoding failures and disrupted multisig workflows. In #36539, the GUI approach changed to v0 exports; avoiding new translated controls during a backport/string freeze was an explicit implementation constraint. External-signer exchange was subsequently kept on v2.
The application’s ExportReview follows this distinction: newly created files use v0, while imported documents retain their original version. The historical record explains why file-export compatibility and the configured signer’s format contract are separate decisions.
Source 1 · Source 2 · Source 3 · Source 4
An external signer’s response is not intended to redefine the transaction supplied for approval. Upstream #36114 describes merging rather than replacing signer responses to reject removed outputs, reduced amounts and changed scripts while permitting omission of unnecessary metadata. It explicitly limits the threat model: these checks do not fully defend against a malicious helper process running as the same user.
The pinned Core signer decodes and replaces the PSBT with the helper’s response. The application’s MatchesUnsignedTransaction checks and PSBT inspection therefore sit at a concrete integration boundary between returned signing data and reviewed transaction terms. The historical threat-model limit also prevents interpreting these checks as process isolation.
PSBT input metadata has historically balanced compatibility, authentication needs and document size. In Core #19215, updated hardware wallets required full previous transactions even for SegWit inputs; witness_utxo was retained because existing software used its presence to select SegWit signing. Core’s own signer deliberately remained permissive. A user reported that the additional previous transactions made printed-QR workflows substantially harder.
This explains why accepting a PSBT or obtaining a signature does not imply that all participants demand the same evidence. It provides context for the application’s separate authenticated-fee proof and missing-data states, without treating every witness-only PSBT as malformed.
Source 1 · Source 2 · Source 3
Persistent node settings were unified so GUI choices such as pruning and proxies would also govern bitcoind, rather than remaining in platform-specific Qt storage. The historical design also avoided copying every effective value into settings.json: doing so would mask future bitcoin.conf changes. Only actual user changes were intended to create persistent overrides.
This explains why settings migration and revisioned editors must distinguish displayed/effective values from explicit user edits. The refactor’s settings owners operate within a shared node-configuration system, not an independent GUI-preferences store.
Source 1 · Source 2 · Source 3
Ralph's inferences
Binding a page and its operations to one wallet object makes the authorization target independent of later wallet-picker changes. Retaining admitted work while retiring unadmitted prompts separates cancellation of presentation from cancellation of effects already underway.
The base controller already maintained selected and retiring wallets, but the head makes the scope rule explicit and rejects a second wallet binding. This is an application-level explanation of the ownership design, not a claim that historical sources prescribed this exact architecture.
Fee presentation is a separate trust boundary from PSBT parsing and signing progress. The base broadcast path consumed AnalyzePSBT’s fee; the pinned analyzer calculates it from input UTXO records. The head’s fee proof instead binds authenticated previous outputs and an aggregate fee to transaction identity, using previous-transaction hashes or node lookups rather than an uncorroborated witness_utxo claim.
This explains why the refactor carries a fee proof with the immutable review and checks it again during export and subsequent processing. It is an inference from the pinned contracts and application code, not a historical assertion that Core’s analysis API promised authenticated fee review.
Unresolved disagreements
The inspected settings discussion leaves competing preferences about disabled values: one position sought preservation across restarts, while the author preferred discarding unused values to avoid stale temporary proxies confusing later configuration. Follow-up proposals were identified, but their resolution was not inspected.
This is pertinent to retaining settings drafts and previous pruning/proxy values. Preservation and deliberate clearing have different user expectations; the historical objection alone does not establish which policy the current editors should implement.