15 minor findings · 4 suggestions
Earlier concerns neither republished nor resolved: 2 minor findings · 2 suggestions. See the Run archive for their assessments.
Findings
[minor] · Failed signer approval can switch Save transaction back to PSBT v2
A failed external-signer approval can install the wallet-created v2 hand-off document into the review, causing Save transaction to bypass the v0 export path and produce a file older cosigners cannot read.
Location: qml/models/walletmodel.cpp:2699 (head).
Details and suggested fix
ExecuteApproval constructs a v2 PSBT when the wallet-created review has no document. Failures such as ChangedTransaction, InvalidFee and InvalidSignature return the captured approved document. publishApproval installs that document before handling the error, and Save then calls startPsbtFileExport directly instead of reaching ExportReview's v0 constructor. Preserve the original document-less review when a failed attempt adds no useful signing contributions, and test failed approval followed by Save. This does not require changing the potentially intentional v2 export of successful partial signing results.
[minor] · The raw-transaction fee cap overrides a raised wallet -maxtxfee
A wallet-built send within a raised -maxtxfee can reach review and then be refused by the new fixed raw-transaction fee cap; users on the default limits are unaffected.
Location: qml/walletsend.cpp:196 (head).
Details and suggested fix
WalletSendHandle supplies m_psbt_fee_services.policy for ordinary sends. Before committing, walletsend::Execute evaluates it, and ReadNode checks the absolute fee against MaxFee() derived from node::DEFAULT_MAX_RAW_TX_FEE_RATE. Core instead constructs and broadcasts wallet transactions using m_max_tx_fee and m_max_tx_fee_rate, configured by -maxtxfee and -maxfeerate. Consequently, a sufficiently large send allowed by the raised wallet limit is refused after review. Use the wallet's configured limits for wallet-built sends and bumps, while retaining the raw-broadcast limits for imported PSBT broadcast.
[minor] · Avoid-reuse Send can leave remaining outputs at an address unavailable
Send now honors avoid_reuse without also enabling partial-spend avoidance, so spending only some outputs at an address can exclude the remainder from subsequent app sends.
Location: qml/models/coinselection.h:33 (head).
Details and suggested fix
ApplyInputPolicy sets m_avoid_address_reuse but leaves m_avoid_partial_spends unchanged. Core's sendtoaddress explicitly couples the two. Without that coupling, CreateTransaction tries grouping only opportunistically and keeps the grouped transaction only within m_max_aps_fee of the ungrouped fee. A partial spend can therefore mark the address used and remove its remaining outputs from the app's spendable balance and maximum. Enable partial-spend avoidance when the wallet has avoid_reuse enabled, and test multiple outputs at one address. The remaining funds are not lost and can still be spent through RPC with reuse avoidance disabled.
[minor] · PSBT file import rejects files above 4 MiB that export permits
The new production import path rejects PSBT files above 4 MiB, although the previous reader and current export permit 100 MiB, breaking large-file round trips.
Location: qml/paymentimport.cpp:29 (head).
Details and suggested fix
paymentimport::ReadSource reads only MAX_FILE + 1 bytes and rejects files exceeding its 4 MiB limit. The real chooser uses this path through the captured import operation, as does local-file drag-and-drop. Previously, LoadPsbtFromFile allowed 100 MiB, and MAX_PSBT_EXPORT_BYTES still permits that size. PSBTs carrying full previous transactions can therefore be exported but not reopened through the production UI. Use the PSBT-specific 100 MiB limit for file input and retain a smaller limit for payment text. No PSBT larger than 4 MiB was produced in this review; RPC remains a workaround.
[minor] · The macOS Core-thread stack safeguard was dropped
Plain std::thread creation removes the previous 8 MiB macOS stack safeguard for Core startup and shared workers, reintroducing a possible stack overflow that was not reproduced in this review.
Location: qml/executor.cpp:26 (head).
Details and suggested fix
The previous BackendExecutor explicitly set an 8 MiB stack under Q_OS_MACOS, documenting that Core startup can exceed the 512 KiB secondary-thread default, especially under sanitizers. The replacement Worker and QmlInitExecutor create plain std::threads without setting their stack size, and initialization still runs appInitMain there. Preserve the explicit macOS stack size through a shared thread-creation helper, or establish why the documented requirement no longer applies.
[minor] · Close leaves the inline Receive editor visible but unusable
Closing a clean inline Receive editor leaves its fields visible, read-only and unsaveable until the user explicitly starts a new request.
Location: qml/components/ReceiveRequestEditorCard.qml:96 (head).
Details and suggested fix
ReceiveRequestEditorCard always exposes savedRequestCloseButton, which calls editor.requestClose(). It forwards the editor's closure as closeRequested, but ReceivePage has no handler for that signal. WalletReceiveModel only unparents the closed editor unless a replacement is pending, and ensureAddress() preserves an already-ready reservation rather than replacing the editor. Since a closed editor is unavailable, its fields and Save action remain disabled. Hide Close in the inline workspace, or replace its editor when closure completes, and cover closing an untouched request in a regression test.
[minor] · The Receive editor no longer offers Copy address
A freshly reserved, unsaved receiving address is now plain text without the clipboard interaction previously provided by AddressLabel.
Location: qml/components/ReceiveEditorFields.qml:20 (head).
Details and suggested fix
ReceiveEditorFields renders the address with CoreText, and the inline card supplies no copy action. Previously, AddressLabel was interactive for unsaved requests and while sharing. The new sharing component is created only after a request has an ID and offers Copy request and QR actions, so it does not restore copying an unsaved bare address. Restore an interactive AddressLabel or an explicit Copy address action under the previous condition.
[minor] · A rejected fee-bump commit is incorrectly reported as Uncertain
In a narrow, unobserved race where Core rejects the bump before committing, the app reports Uncertain and prevents reset or preparation of a fresh attempt.
Location: qml/walletbump.cpp:206 (head).
Details and suggested fix
walletbump::Execute maps a false commitBumpTransaction result to Error::Commit, and publishCommit maps that error to Phase::Uncertain. In the pinned Core implementation, all non-OK returns occur before wallet.CommitTransaction; after committing, the function returns OK. The original can confirm or gain a descendant between the app's final checks and Core's precondition check. That definite rejection should become Failed or NeedsRevalidation, not an uncertain effect. Keep uncertainty for exceptions where the commit outcome is genuinely unknown. The current outcome recheck only observes the candidate and does not release this state.
[minor] · The additive cluster check can veto an accepted replacement
In the unobserved full-cluster replacement case, readiness and broadcast can reject an exact transaction accepted by testmempoolaccept because the earlier additive check still counts the transaction being replaced.
Location: qml/psbtpolicy.cpp:165 (head).
Details and suggested fix
ReadNode records checkChainLimits(transaction), and Evaluate blocks on that result before considering Admission::Allowed. The pinned CheckPolicyLimits stages only the new transaction. Replacement admission instead stages removal of conflicts before checking cluster limits. An imported replacement sharing an already-full unconfirmed cluster can therefore fail the additive check even though exact admission allows it, and the broadcast path repeats the same veto. Do not let this additive approximation override successful exact admission.
[minor] · A refused Receive type stays hidden after descriptor import
After Core refuses an address type, the session keeps it unavailable even if an active descriptor is subsequently imported, until the wallet is unloaded and reopened.
Location: qml/walletopening.cpp:540 (head).
Details and suggested fix
markReceiveTypeUnavailable only inserts into the session's negative cache. The handleCanGetAddressesChanged callback requests a metadata refresh through ingress(0) but does not invalidate that cache. In the pinned Core, activating a script manager updates the per-type manager and emits this notification, so importing an active descriptor can make a previously refused type usable without reopening the wallet. Clear or re-probe negative entries on capability changes, and test refusal followed by an active descriptor import.
[minor] · Sign-only enables broadcast readiness without a policy assessment
Signing an imported PSBT in-app can show “Ready to broadcast” based only on signature completeness, unlike importing its signed form; broadcast itself still rechecks policy.
Location: qml/models/walletsendhandle.cpp:513 (head).
Details and suggested fix
After clean sign-only completion, finishSendWork installs the signed document and calls setCanBroadcast(m_node && !result->partial) without assessing node policy. Complete imports instead pass through Inspect and Qualify, which apply the policy result before enabling broadcast. Thus a non-final or below-relay-fee PSBT can appear ready after signing and fail when Broadcast performs its check. Reuse the signed-import readiness assessment while retaining the signed document during the pending check, or distinguish unassessed completeness from readiness in the UI.
[minor] · The same pasted passphrase can create a wallet but fail to unlock it
Pasting secret\n encrypts with secret in the new-passphrase fields but submits secret\n when unlocking, producing an incorrect-password error; typing the visible password still works.
Location: qml/controls/PasswordTextField.qml:20 (head).
Details and suggested fix
dropsLineEndings silently removes CR/LF from the creation fields, while the unlock prompt leaves it disabled and Materialize preserves the submitted bytes. Reusing the same clipboard therefore no longer reproduces the password used for encryption. Keeping unlock exact is necessary for wallets already encrypted with line endings. Reject CR/LF visibly in new-passphrase fields instead of silently changing the secret, so users can correct their input without changing existing-wallet unlock semantics.
[minor] · Payment and PSBT import errors are hard-coded English
The new import reader creates user-visible errors with QStringLiteral, so localized users receive untranslated failures in the Send form.
Location: qml/paymentimport.cpp:97 (head).
Details and suggested fix
ReadSource and AnalyzeSource construct errors such as “The source is not a supported payment request or PSBT.” and “The PSBT is malformed.” with QStringLiteral. The import operation exposes the error, SendImportModel::status() forwards it, and SendCreate binds it to importErrorText. The operation's transport errors already use tr(). Give the reader's errors an extractable QCoreApplication::translate context, or carry typed errors to the GUI for translation.
[minor] · The Activity hold timer undoes its own final scroll clamp
When settled content is shorter than the held scroll position, the clamped contentY write re-enters restorePosition(false) and restores the out-of-range position before releasing the hold.
Location: qml/pages/wallet/ActivityListPage.qml:383 (head).
Details and suggested fix
The timer calls restorePosition(true) before clearing heldContentY. If that function writes a clamped position, onContentYChanged immediately calls restorePosition(false), which still sees the hold and writes its original value back. A regroup, reset or layout change that shrinks the content can consequently leave the view beyond its bounds until another Qt adjustment or user scroll. Capture and clear the hold before the final assignment, or suppress re-entry during that assignment. Test a held bottom position followed by content shrinkage.
[minor] · Cancelled clipboard import objects accumulate during recipient edits
With non-empty clipboard text, recipient edits repeatedly replace the clipboard-check operation without deleting its cancelled QObject, retaining it until the Send page is destroyed.
Location: qml/models/sendimportmodel.cpp:235 (head).
Details and suggested fix
recipientEdited calls checkClipboard(), which disconnects and cancels the previous check before requesting another. WalletImportTarget forwards the owner to BitcoinUriModel, which allocates a new PaymentImportOperation parented to SendImportModel. Neither cancel() nor close() deletes that object, so parent ownership retains every discarded projection. The same omission exists in cancelImport and cancelAll. Schedule discarded operations for deletion after cancellation, and test that repeated edits keep the child count bounded.
Optional improvements
[suggestion] · PSBT import automation bypasses the production import owner
The tested hidden-path continuation uses a different import pipeline from the real chooser, leaving production import behavior outside those full-application journeys.
Location: qml/pages/wallet/SendCreate.qml:67 (head).
Details and suggested fix
When psbtImportPathField is populated, the menu calls requestPsbtImport() and draftController.importPsbt(). The real chooser instead delivers its file to imports.chooseFile() on the captured ImportOperation. The malformed-structure integration case and signed-PSBT broadcast journey use the hidden field. These paths already differ in their 100 MiB versus 4 MiB file limits. Keep native-panel automation out of scope, but inject the selected file into the captured production continuation. Route the malformed-input and broadcast journeys through it and include a boundary-size case.
[suggestion] · The helper commits claim enforcement that lands in later commits
The fee-authentication and signer-substitution commits add helpers rather than enforcing the fixes, making their commit messages and issue attribution misleading despite the final-tree checks.
Location: qml/models/psbtfee.cpp:18 at 0494529a19e4 (commit) (commit).
Details and suggested fix
0494529a19e43ffd16106718c96840dba997bdfb introduces the fee-proof helpers and unit tests but claims to use the authenticated fee in review and broadcast. c5923da273d1c8725a43adef42c0b9dc5be1c903 similarly introduces the transaction-comparison helper while claiming to refuse substitutions. The enforcement arrives with walletsend.cpp in 30437d167397699460104eb97c764e322be06169 and the PSBT/bump paths in 90f6b507bfac28015c14c2469fa2ba94f1142e00. Reword the early commits as helper additions and attribute the completed fixes to the wiring commits. This preserves the useful helper/unit-test separation and the stated whole-series build model; it is a review-flow concern, not a missing check at head.
[suggestion] · Retained secret text is released without cleansing
The retained QString can leave secret text in freed heap storage; cleansing currently covers only the temporary UTF-8 conversion, not this buffer or other QML/JavaScript copies.
Location: qml/secretinput.h:34 (head).
Details and suggested fix
secretinput::Input stores const QString m_text and has no cleansing destructor. materialize() wipes its temporary QByteArray, but releasing the retained input does not wipe its UTF-16 storage. Make the member non-const and cleanse it at retirement when isDetached() confirms exclusive ownership, without detaching merely to wipe a copy or modifying shared QML storage. This is defense in depth against memory residue, not a complete secret-erasure guarantee.
[suggestion] · importdescriptors private keys remain visible in console recall
The new redaction policy still permits descriptor private keys to remain in echoed requests and recall history, a pre-existing gap also present in pinned Bitcoin-Qt.
Location: qml/models/rpccommandexecutor.cpp:28 (head).
Details and suggested fix
HISTORY_FILTER has no importdescriptors entry, so a command containing an xprv, tprv or WIF private key can survive prepared->filtered() and enter both the request output and session history. Extend redaction to key-bearing importdescriptors arguments and add a descriptor-private-key console test, or explicitly document this remaining exposure. Also remove the comment's “plus addhdkey” qualification, since addhdkey is already in the pinned Widgets policy. This recommendation extends coverage rather than identifying a newly introduced exposure.
Earlier concerns
Earlier reports raised these, with the titles and severities shown there. This review neither republished nor resolved them.
- [suggestion]: The startup rewrite removes error routing that a later commit restores (earlier report)
- [minor]: A stale fee-policy failure can clear a newer read's pending state (earlier report)
- [minor]: The console labels implicit wallet RPCs as node commands (earlier report)
- [suggestion]: Speed Up omits the
avoid_reusepolicy now enforced by Send (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
Asynchronous wallet interfaces historically address contention and responsiveness, not merely architectural tidiness. Bitcoin Core's lock-order work explained that slow transaction creation and listing could hold node-wide locks; reducing those lock spans allowed node, RPC and GUI activity to proceed. The accompanying discussion also identified the cost: code could no longer assume that separately queried chain facts remained unchanged.
This explains the competing goals behind moving wallet work onto background owners and publishing snapshots. The pinned wallet interface still distinguishes blocking queries from tryGetTxStatus and tryGetBalances. The new execution architecture should be understood as separating responsiveness from state consistency, rather than making consistency automatic. Historical Core locking arguments do not themselves establish Qt thread-affinity behavior.
Source 1 · Source 2 · Source 3
Unsubscribing from notifications and destroying their recipient are separate lifetime problems. The historical wallet-unload fix documented that disconnecting a Boost signal did not prevent already-started invocations, and separately used a queued Qt connection to avoid destroying a WalletModel while it was being used. Investigation also found queued wallet-added deliveries still in flight during deletion.
The new wallet-opening Session installs weak-owner callbacks and retains native resources through shared ownership. Its ownership and shutdown machinery addresses a historically demonstrated boundary: backend callback lifetime, queued GUI delivery and native-wallet lifetime need distinct coordination. Removing a page or disconnecting a handler is not evidence that all related work has ended.
Source 1 · Source 2 · Source 3
PSBT input amounts have historically been security-sensitive assertions, not inherently trustworthy fee evidence. Trezor's Electrum integration described how false SegWit input amounts could produce unexpectedly high fees and required full previous transactions to authenticate those amounts. The discussion exposed a transport tradeoff as well: omitting previous transactions had helped fit transactions into constrained QR payloads.
The comparison-base broadcast path accepted a fee from AnalyzePSBT. In the unchanged pinned Core dependency, that calculation uses GetUTXO, which can return a standalone witness_utxo. The new application fee proof instead checks previous-transaction identity or obtains independently verified outputs. The historical lesson is why displayable PSBT metadata and an authenticated fee are different contracts; it is not a claim that every PSBT workflow must use the same transport or authentication method.
Source 1 · Source 2 · Source 3
External signing is intended to add authorization to agreed transaction terms, not replace those terms. The separate upstream signer-hardening proposal explicitly tests removed outputs, reduced values and changed scripts, and proposes merging signer responses while rejecting unsafe signing forms. Its threat model expressly stops short of protecting against a malicious helper process running as the same user.
The pinned Core signer implementation decodes the returned PSBT and replaces the supplied PSBT. The old GUI approval path subsequently extracts the returned transaction. The new MatchesUnsignedTransaction helper compares version, locktime, outputs, input outpoints and sequences. The historical rationale explains both the transaction-preservation boundary and why these checks should not be described as a sandbox against a fully compromised local signer process.
GUI PSBT export historically favors interoperability over exposing every newer-format feature. The upstream compatibility report described failures when GUI-created v2 PSBTs reached pre-v32 Core cosigners. The response favored v0 GUI exports; avoiding new translated controls simplified backporting. Later discussion deliberately distinguished file export from external-signer transport, retaining v2 for the latter.
ExportReview now creates new files as v0 while preserving an imported document's version. This is a workflow compatibility choice for files exchanged between independently upgraded wallets, not evidence of a consensus change or a universal prohibition on PSBT v2.
Source 1 · Source 2 · Source 3 · Source 4
Ralph's inferences
Binding a wallet page and its operations to stable objects separates user authorization from the application's changing selection. This makes a confirmation refer to the wallet and review that produced it, rather than whichever wallet or draft happens to be current when a delayed response arrives.
The architecture specifies one wallet per page lifetime; WalletPageController rejects rebinding. TransactionReviewController records the review associated with an operation and cancels waiting prompts or saves when that review changes. SendTransactionReview binds its controller to the displayed wallet. These establish the apparent purpose of the ownership design, without proving every eventual execution path preserves it.
The new ownership machinery distinguishes cancelling presentation from cancelling an accepted effect. A closed page can stop receiving results while accepted backend work still needs to finish, record its outcome and release borrowed resources before native interfaces disappear.
The base executor already guarded GUI completion with QPointer. OwnedWork adds an explicit ledger and queue draining independent of GUI publication; ShutdownCoordinator separates work before and after node interruption. This explains why owner lifetime, effect completion and shutdown require more than dropping a callback. The configured minimum is Qt 6.2, but these source contracts alone establish no runtime behavior across supported Qt versions.