11 minor findings · 9 suggestions
Earlier concerns neither republished nor resolved: 5 minor findings · 9 suggestions. See the Run archive for their assessments.
Findings
[minor] · Save still writes a v2 PSBT after signing a new draft
After partial external-signer approval or local Sign only on a new draft, Save preserves the app-created v2 document, which Bitcoin Core 31 and older cannot read.
Location: qml/walletsend.cpp:641 (head).
Details and suggested fix
ExecuteApproval and ExecuteSignOnly create PartiallySignedTransaction{unsigned_tx, 2} when the new draft has no document. The verified result becomes the review's PSBT, and Save passes it to ExportReview as source. That function chooses version 0 only when source is null, so a multisig user saving their signed share still exports v2. Track whether the document originated from an import and export app-created documents as v0 while preserving their signatures and leaving imported versions unchanged. Add a save-after-partial-signing regression test.
[minor] · Sign-only work has no withdrawal point before signing
Queued Sign-only work can unlock and sign after its page retires, contrary to the page-lifetime contract, although the reviewed transaction stays fixed and nothing broadcasts.
Location: qml/models/walletsendoperation.cpp:215 (head).
Details and suggested fix
Only Submit receives a CommitConsent. For Sign only, WalletSendOperation::cancel() cannot withdraw Pending work, and Session::perform executes accepted actions without rechecking closure. With a captured passphrase, ExecuteSignOnly can subsequently unlock the retained wallet and call fillPSBT(sign=true). Give sign-only work a withdrawal token claimed immediately before unlocking, and test retirement while the Core queue is held. If clicking Sign is instead intended to make queued work irrevocable, document that exception to the unstarted-work cancellation contract explicitly.
[minor] · The node-only build still includes walletmanager
With ENABLE_WALLET=OFF, source inspection indicates that walletmanager retains references to excluded WalletModel symbols, so the application link is expected to fail.
Location: CMakeLists.txt:144 (head).
Details and suggested fix
qml/walletmanager.{cpp,h} remains in QML_SOURCES while walletmodel.{cpp,h} is filtered out. The manager calls WalletModel members and declares the Q_OBJECT class OpenWalletListModel, whose moc participates in the combined AUTOMOC object. This leaves wallet-dependent implementation in the node-only link rather than safely isolating an unused source file. Exclude or guard both manager files along with the wallet implementation, and add a build check using ENABLE_WALLET=OFF.
[minor] · A definite fee-bump refusal becomes an uncertain outcome
When commitBumpTransaction returns false, Core has committed nothing, yet Speed Up enters Uncertain and refuses another preparation.
Location: qml/walletbump.cpp:206 (head).
Details and suggested fix
The narrow trigger is the original transaction confirming or gaining a descendant after the app's checks. In pinned Core, every non-OK return from feebumper::CommitTransaction precedes wallet.CommitTransaction. The app converts that false return to Error::Commit, then publishes Phase::Uncertain, which requestPrepareFeeBump refuses. Base treated the same return as an ordinary failure. Map a false return to Failed or NeedsRevalidation, reserving an uncertain outcome for failures that genuinely leave the commit effect unknown.
[minor] · The Activity scroll hold undoes its final clamp
By inspection, when regrouping leaves the held position beyond the content, the settle step clamps contentY and its change handler immediately restores the out-of-range value.
Location: qml/pages/wallet/ActivityListPage.qml:383 (head).
Details and suggested fix
holdPositionTimer.onTriggered calls restorePosition(true) while heldContentY is still set. Assigning the clamped target emits contentYChanged, whose handler calls restorePosition(false) and writes the original held position back. The timer then clears the hold, leaving the list beyond its settled content until another action moves it. Compute the clamped target, clear the hold, and only then assign contentY.
[minor] · Hiding Activity loses the user's scroll position
When navigation hides the retained Activity page, its model detaches and returning rebuilds the list without restoring the user's place.
Location: qml/pages/wallet/ActivityListPage.qml:407 (head).
Details and suggested fix
model: root.visible ? activityFilterProxy : null discards the list's instantiated state while hidden. Nothing saves a row identity and offset across that detach; the short-lived confirmation hold does not cover navigation. ActivityList retains this page beneath pushed transaction details, so returning from older history can lose the place the user was inspecting. Keep the detach, but capture a stable row key and offset before it and restore them after reattaching. This concern applies to routes that hide the page, not necessarily every navigation path.
[minor] · Core workers lose the enlarged macOS stack
The refactor removes base's 8 MiB macOS stack override from node initialization and Core workers; no overflow has been reproduced on the new threads.
Location: qml/executor.cpp:26 (head).
Details and suggested fix
Base set QThread::setStackSize(8 * 1024 * 1024) because Core startup can exceed macOS's 512 KiB secondary-thread default, especially under sanitizers. QmlInitExecutor used that executor for appInitMain. The new Worker and initialization thread use plain std::thread construction without an equivalent stack attribute. Preserve the explicit stack size for these macOS threads, or establish why the documented requirement no longer applies before removing the protection.
[minor] · Recipient text comparison checks storage identity
Equal recipient text in separate QString storage advances the draft revision, although the frequency of that input in current callers is unestablished.
Location: qml/models/sendrecipient.cpp:19 (head).
Details and suggested fix
SameText treats non-empty strings as equal only when their constData() pointers match. Consequently, setting an equal label or message from another allocation emits inputEdited; recordEdit then advances m_intent_revision and emits the draft/version notifications. Revision-keyed work can be invalidated despite unchanged text. Compare contents with a == b, and test an equal string whose storage has been detached.
[minor] · Discarded clipboard checks remain alive
Each clipboard re-check retains the cancelled import operation as a controller child until the Send page is destroyed.
Location: qml/models/sendimportcontroller.cpp:235 (head).
Details and suggested fix
checkClipboard() cancels and forgets the old check before requesting another operation owned by the controller. cancelImport() and cancelAll() do the same, while PaymentImportOperation::cancel() closes the service but never deletes the object. With non-empty clipboard text, recipient edits can therefore accumulate cancelled children throughout a long-lived Send page. Call deleteLater() on discarded operations after cancelling them. The triggering handlers are present, but their runtime frequency was not measured.
[minor] · Sign only marks transactions broadcast-ready without checking policy
A nonfinal or below-relay-fee transaction can become broadcast-ready after Sign only, then fail when the user presses Broadcast.
Location: qml/models/walletsendoperation.cpp:513 (head).
Details and suggested fix
After a clean signing result, finishSendWork sets canBroadcast from m_node && !result->partial. The signing path establishes valid, complete signatures but never evaluates current node policy. Signed PSBT imports receive the node-readiness assessment, so the two ways of reaching the same signed transaction advertise different readiness. Run that assessment after Sign only as well. Broadcast's later policy check remains necessary and still prevents submission of a rejected transaction.
[minor] · Receipt polls can repeatedly restart the first 128 rechecks
With more than 128 unconfirmed receipts and batches slower than the poll interval, recurring polls can prevent later receipts from being rechecked.
Location: qml/walletpayments.cpp:282 (head).
Details and suggested fix
poll() sets m_poll even while a batch is active. The next plan() consumes that flag and calls restartRechecks(), which clears m_recheck_after before selecting up to 128 IDs. If those IDs remain unconfirmed and another poll arrives during each slow batch, every continuation starts from the same prefix and reconciliation stays Pending. Coalesce polls while a recheck pass is unfinished instead of restarting its cursor. This is a conditional source-level failure under unusual load, not an observed execution.
Optional improvements
[suggestion] · An empty -addresstype= overrides the app's default
Without a saved receive choice, -addresstype= selects Core's implicit bech32 default instead of the app's Taproot default.
Location: qml/walletopening.cpp:43 (head).
Details and suggested fix
ReadMetadata and preferredReceiveType treat IsArgSet("-addresstype") as an explicit address-type selection. Core's LoadWalletArgs applies that option only when its value is non-empty. Use the same !gArgs.GetArg("-addresstype", "").empty() condition in both application checks, and add an empty-value row to the receive-default test.
[suggestion] · Repeating the creation paste can fail to unlock
Pasting secret\n at creation stores secret, but repeating that paste at unlock fails even though typing secret succeeds.
Location: qml/controls/PasswordTextField.qml:20 (head).
Details and suggested fix
New-passphrase fields remove CR/LF, while unlock fields correctly preserve them for wallets created with those characters by older versions. This makes the same clipboard text produce different passphrases at creation and unlock. Keep exact unlock matching, but show a targeted hint when a failed unlock input contains CR/LF so users can recognize and remove the pasted line ending. Cover creation and unlock using the same newline-terminated paste.
[suggestion] · Device approval blocks the shared Core worker
While a hardware device waits for approval, Core-lane work for unrelated wallets queues behind the same blocking call.
Location: qml/walletsend.cpp:956 (head).
Details and suggested fix
Signer approval calls opening->perform, which posts ApproveInto to the executor's single Core worker. Its synchronous fillPSBT(sign=true) includes the device wait, so moving it off the GUI thread does not keep other wallets' Core work responsive. Route device approval through the existing Signer utility worker, with per-wallet sequencing that prevents work for the waiting wallet from blocking Core on its wallet lock while unrelated wallets continue.
[suggestion] · avoid_reuse is applied without requiring partial-spend avoidance
A partial spend can leave sibling outputs at the same address marked reused, after which the new reuse filter excludes them from the usable balance.
Location: qml/models/coinselection.h:33 (head).
Details and suggested fix
ApplyInputPolicy sets m_avoid_address_reuse but does not enable m_avoid_partial_spends when the wallet opts into reuse avoidance. Core can try grouped selection opportunistically, but that does not guarantee it; its send RPC explicitly enables partial-spend avoidance alongside reuse avoidance. Apply that same conditional policy here and test two outputs received at one address, so an automatic send does not unnecessarily leave a dirty remainder.
[suggestion] · Speed Up does not apply Send's reuse filter
Speed Up's pre-existing policy can add a reused output that the new Send policy excludes for an avoid_reuse wallet.
Location: qml/walletbump.cpp:106 (head).
Details and suggested fix
walletbump::Prepare leaves m_avoid_address_reuse at its default while allowing Core to add inputs for the higher fee. Set that flag to true as Send does, so additional automatically selected inputs honor the wallet's opt-in reuse policy. Core ignores the filter for wallets without avoid_reuse; the original transaction's mandatory replacement inputs still need to remain selected.
[suggestion] · Wallet creation retains its passphrase in the immutable request
The captured plaintext passphrase remains owned for the creation service's lifetime rather than being released after its last use.
Location: qml/walletcreationcontroller.cpp:159 (head).
Details and suggested fix
Creation assigns the captured input to both request.passphrase and request.confirmation, and the service stores that request as a const member. Completing the operation does not remove those credential references, even when only outcome or load-recovery state still needs to survive. Keep single-use credentials outside the immutable request and release their references after the native creation call no longer needs them.
[suggestion] · Captured secrets are released without wiping their text
secretinput::Input frees its plaintext QString without cleansing it, despite cleansing the temporary UTF-8 materialization buffer.
Location: qml/secretinput.cpp:34 (head).
Details and suggested fix
Input retains the passphrase in m_text and has no destructor that wipes that storage. Returning a SecureString from materialize() therefore protects the materialized copy but not the captured text left in ordinary allocation storage. As defense in depth, use securely owned credential storage or arrange an exclusive mutable buffer that is cleansed before release. Do not wipe implicitly shared QString storage in place.
[suggestion] · New import rejection messages bypass translation
The new file and PSBT import rejection literals remain English even when the user selects a translated interface.
Location: qml/paymentimport.cpp:97 (head).
Details and suggested fix
ReadSource constructs messages such as the unsupported-source and malformed-PSBT errors with QStringLiteral. They become the operation's error and are returned directly by the controller for display, so translation catalogs cannot supply localized text. Return typed error codes for translation at presentation, or use QCoreApplication::translate with a fixed context for these user-facing literals.
[suggestion] · An early failure can hang the executor cleanup test
An assertion failure before the cleanup barrier is released would leave executor destruction waiting forever on the blocked worker.
Location: test/test_executor.cpp:330 (head).
Details and suggested fix
After the cleanup callback starts waiting on release_future, several QVERIFY and QCOMPARE calls can return from the test before release_cleanup.set_value(). The executor is destroyed before the promise, and its destructor joins that still-blocked worker, hiding the assertion failure behind a hang. Record the intermediate results without early-return assertions, release the promise and join, then assert the recorded results.
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)
- [minor]: Receive keeps supported types hidden after descriptor imports (earlier report)
- [suggestion]: Private descriptor imports remain outside console redaction (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)
- [suggestion]: PSBT import automation bypasses the production import owner (earlier report)
- [minor]: Queued configuration resets appear clean to settings navigation (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)
- [suggestion]: The test-only PSBT pipeline has a different signing policy (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
Responsiveness historically took priority over immediate freshness of displayed wallet data. In Bitcoin Core #10251, Wladimir van der Laan objected that replacing a TRY_LOCK-based polling timer with signals could make the GUI acquire contended wallet and chain locks repeatedly. Moving notification delivery alone did not remove expensive work from the receiving GUI thread.
This explains why the affected design moves backend reads and work off the GUI thread rather than merely replacing polling with notifications. The later QML issue #966 explicitly extends that constraint to directory discovery, preflight checks, persistence and wallet removal, including backend work performed before or after an asynchronous load.
Long-running wallet operations were not intended to make unrelated open wallets unusable. Earlier QML PR #986 separated importing from ordinary loading because a restore and rescan could otherwise lock the application for the entire operation. It also preserved results after the import dialog closed, distinguishing presentation lifetime from backend-operation lifetime.
This is direct historical context for wallet-scoped models and operations whose results survive page closure. The pinned architecture similarly distinguishes cancelable work from work past a commit point, and retains wallet-wide unresolved effects independently of the page that started them.
A delayed confirmation must not silently acquire a new wallet target. PR #1009 documented that consulting selectedWallet when a backup dialog was accepted could back up a different wallet loaded while the dialog remained open. Its proposed remedy pinned the original wallet and refused the action if that wallet closed.
The new one-wallet-per-page contract generalizes this identity constraint beyond backups. WalletPageController rejects rebinding to a second wallet and stops its use case when availability ends. Historical backup discussion also raised dismissal and invalidation on context changes, demonstrating that wallet identity and continued user consent are distinct concerns.
Moving work to a worker thread was historically considered insufficient without explicit outcomes, cancellation and lifetime guarantees. Issue #1054 described rejected submissions and shutdown-cleared completions leaving pending flags unresolved, duplicated latest-request-wins logic, and drain notifications missed by late subscribers. PR #1109 consequently proposed explicit success, failure and cancellation outcomes while preserving worker-side cleanup and shutdown draining.
The base BackendExecutor exposes a Boolean submission result and guards callback delivery by receiver lifetime. The head introduces explicit rejection and not-started causes, separates execution from outcome delivery, and documents coordinated draining. These changes address operation-state ownership and teardown obligations, not just performance.
PSBT was designed for interoperability among different clients and offline signers, so a GUI export's compatibility is a user-workflow constraint rather than merely a serialization preference. In Core #36518, users described v2 exports breaking older Core and multisig workflows. The follow-up #36539 chose v0 GUI exports; its discussion explicitly avoided new translated GUI controls during backporting, while later retaining v2 for external-signer transport.
The inspected ExportReview change selects version 0 for newly created files while preserving an imported document's version. The history explains why file export and external-signer handoff can intentionally use different compatibility policies without requiring every PSBT path to share one default.
Source 1 · Source 2 · Source 3 · Source 4 · Source 5
PSBT input information has a security-versus-size tradeoff. An inspected discussion of Core #31622 explains that witness-v1-only transactions can omit full previous transactions for efficiency because their signatures commit to all input UTXO values, and explicitly connects that distinction to earlier fee-overpayment attacks.
The base application's broadcast path accepted the fee returned by AnalyzePSBT, whose pinned implementation totals the UTXOs supplied through the PSBT. The head's psbtfee::Analyze separately authenticates previous outputs using transaction hashes or verified lookup results and binds the resulting fee proof to transaction identity. The historical distinction explains why a displayable analysis result and an authenticated fee are separate concepts.
An external signer's response is not unrestricted authority to replace the transaction being approved. Core #36114 explicitly proposes merging responses rather than replacing the request, rejecting changed outputs and unsafe signing forms while allowing unnecessary metadata to be omitted. It also states a threat-model limit: these checks do not fully defend against a malicious signer process running as the same user.
The application's new comparison checks preserve reviewed inputs, outputs, version, locktime and sequences while allowing signature material to change. PSBT inspection also compares transaction terms before and after wallet metadata filling. This history explains the authorization boundary without treating the checks as complete host-compromise protection.
Ralph's inferences
The separation between canceling unstarted work and retaining already-committed work reconciles two competing needs: leaving a page should retire obsolete intent, but destroying its presentation cannot undo an external side effect or erase the obligation to report its outcome.
This interpretation follows the pinned architecture's page-lifetime and commit-point rules, its wallet-wide retention of unresolved effects, and the executor's separate execution and delivery stages. It explains the ownership machinery without asserting that every migrated workflow implements the contract completely.