mirror of
https://github.com/bitcoin-core/gui-qml.git
synced 2026-12-02 07:54:42 +00:00
WIP: qml: update model design #1142
No reviewers
Labels
No labels
Android
Bug
Build system
Design suggestion
Doc
Needs design review
Needs rebase
Stage
UX
Up for grabs
Upstream
Wallet
duplicate
enhancement
good first issue
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
bitcoin-core/gui-qml!1142
Loading…
Reference in a new issue
No description provided.
Delete branch "qt6-qml-owned-models"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This moves the QML frontend's wallet, send, PSBT, Activity, Receive, settings,
startup, console and peer logic out of the monolithic controllers into owned,
revisioned models that do their work off the GUI thread. The QML adopts the
upstream design system from #1052 (see the
interactive object model and shutdown lifecycle walkthrough
and design notes).
Each row in the Fixed table names tests that passed in the final validation (see Validation
for which runs used the exact final tree).
Depends on #1090 and #1096
This PR is based on two open PRs. Their commits come first, in this order (rebased onto
qt6db9aa8429ac):19a75d973e4)042d9388dda)This PR supersedes #1109:
qml/backendexecutor.{cpp,h}is replaced byqml/executor.{cpp,h}, and #1109's task-outcome, cancellation, and drain test cases are carried forward intest/test_backendexecutor.cpp(credited viaCo-authored-byin3f9feaeea8f).Review only the 31 commits after those 48 dependency commits (listed below). Once the dependencies merge, this PR drops their commits.
#1090 was rebased onto
qt6after #1052 (design system). Each conflict resolution follows#1052's renamed controls and keeps its test setup; #1052's startup-error functional case, in a
file #1090 deletes, is kept as a scenario in
interface_qml_startup.py. Testing the rebased#1090 found further interactions with #1052; they are fixed in the commit that introduced each
test, or in three new commits at its end.
#1096 adds the QML lint gate and the app's Core lint, clang-tidy and sanitizer entry points;
this PR's checks run through them. Rebased, its first commit also makes #1052's QML pass the
gate: typed
ApplicationModelsaccess, imports #1052's rewrites need, and #1096's extractedcomponents rebuilt from #1052's restyled code. It now builds on #1090: its lint fixes to tests
#1090 deletes are dropped, and it covers #1090's code.
The #1090 rebase conflicts and the failures fixed after it are in this description's edit history (removed for length).
Architecture
The QML front end follows
doc/architecture.mdand theGUI QML Object Model
(source & design notes):
models hold data, controllers hold one use case's state and actions, each operation reports its
own outcome, and QML binds to state and calls one action per user event. QML
passes back no request ids, tickets, or revisions and holds no operation it
started.
WalletController,WalletCreationController,WalletNamesController, andDesktopTrayIconController.SendDraftController,SendImportController,TransactionReviewController,FeeBumpController,PaymentRequestViewController,PaymentRequestDeleteController,ActivityDetailController,PeerCommandController,SettingsNavigationController,WalletPasswordController,and
WalletBackupController.execution::Executorprovides theCore,Priority,Rpc, andUtilitylanes. Utility has separate IO, signer andcleanup workers: settings writes run on Priority, UI preferences on Utility, and
native wallet release on cleanup. Node lifecycle
and the Qt payment-link listener retain their dedicated threads.
drains accepted work, joins feature-owned threads and the shared executor,
and finally destroys native interfaces off the GUI thread.
Commits
After the 48 dependency commits (#1090, #1096), this PR has 31 commits organized in two parts:
Part 1 — Foundation, defect fixes, area refactors and build/naming cleanup (15 commits)
Follow-up fixes, test-only additions, dead-code removal, and
closeAdmission()→close()are folded into their owning commits. Files used by several areas belong to the area that owns them, so the area commits do not build one by one; the series is validated as a whole at the final commit.3f9feaeea8eb215cd15720c2851bbed7d8c2919e38609d13136b02a941571af84d1e194f980d9e2aec60d10f91e1d473b4c11f8225cb99eaffaa206260c02c01a0a0d3735e9cb4144df52bPart 2 — Standalone issue fixes on the final approved names (16 commits)
Each commit targets one open issue that the refactor did not cover and pairs the fix with its regression test (except where noted):
c3653522d7qml: stop offering receive types Core refuses to generate (Addresses #1088)111c2c970cqml: start Receive from an explicit -addresstype (Fixes #1137)1ec57d4941qml: accept a custom fee rate with an empty whole part (Fixes #1130)1f6f0f6faaqml: save a new transaction as a version 0 PSBT (Fixes #1112)4983adcb0dqml: make Return cancel irreversible confirmations (Fixes #1139)2d35fafc20qml: drop a focused settings edit when the app quits (Fixes #1114)37695c901cqml: warn about pruning in the Close wallet question (Fixes #1127)0532559ac6qml: bring the window into view when a quit starts (Fixes #1126)6afb4b60b5qml: keep the Activity list where the user left it on a confirmation (Fixes #1120)a372b92f97qml: build Activity calendar days at local noon (Fixes #1128)1510f0323bqml: show a receiving address's label on payments it receives (Fixes #1135)f29ee4b0a2qml: offer CJDNS and local-network choices in the Peers filter (Fixes #1113)840861a87ctest: pin that wallet notifications update coin and address rows in place (Refs #1119; guard tests, see Addressed)91c4d6d70dqml: give a dialog the keyboard as soon as it is shown (Fixes #1134)b50879a359qml: start every wallet password prompt masked (Fixes #1133)e1c089831eqml: drop pasted line endings from a new wallet passphrase (Fixes #1132)Issues
Fixed (63; verified by a named test)
WalletQmlControllerTests::createWatchOnlyCleansUpWhenDescriptorImportFails;watchonly.enabled.failedXpubImportReportsTheBlankWalletLeftOnDisk1af84d1e19PsbtWorkTests::ownedOutputReviewDoesNotDependOnSigningec60d10f91interface_qml_startup.py:startup-failure-missing-datadir,startup-failure-missing-relative-datadir,existing-relative-datadireaffaa2062wallet.enabled.restoreRejectsInvalidAndDuplicateBackupsWithoutFilenameClassification;wallet.enabled.importingABackupOfALoadedWalletExplainsTheExistingWallet1af84d1e19FeeSelectionTests::exactRateTransport4f980d9e2asend.enabled.leavingAnUntouchedAmountFieldKeepsMaximum (click-away and tab-away);send.enabled.refreshedMaximumSurvivesLeavingTheFocusedAmountField4f980d9e2asend.enabled.emptyManualSelectionCannotBroadenToWalletInputs;send.enabled.emptyManualChoiceShowsNoInputsAndCannotReview4f980d9e2awallet.enabled.unnamedWalletOpensClosesAndReopensFromThePicker;wallet.enabled.unnamedWalletPresentAtStartupIsNamedAndOpensFromThePicker1af84d1e19SendCreate::test_equal_fee_rates_preserve_actual_provenance;WalletQmlModelTests::coreFallbackFeeReachesPresetsAndReview;send.enabled.presetsAndCustomRateMakeNoBlockTargetPromise4f980d9e2areceive.enabled.originalReorgRepaintsTheOpenRequestFromActualCurrentCredit;receive.enabled.replacementPayingElsewhereReturnsTheOpenRequestToAwaitingPayment1f8225cb99watchonly.enabled.createFromXpubAndPrepareUnsignedTransactionec60d10f91psbt.enabled.authenticatedLegacyFeeReview20c2851bbe-nosettingsreceive.enabled.addressPreferenceWriteReportsDisabledSettings1f8225cb99SettingsNavigation::test_doneAsksBeforeDiscardingAProxyDraft;settings.enabled.reselectingConnectionKeepsTheProxyDrafteaffaa2062PaymentImportTests::changedTargetRetiresOldReplacementAndRequiresFreshConsent;payment-import.enabled.openUriWhileConfirmPasteIsOpene1d473b4c1receive.enabled.cancelledMessageAuthorizationClearsItsErrorAndRetainsEarlierSignature1f8225cb99PsbtWorkTests::outputTotalsBeyondMaxMoneyNeverReachReview;psbt.enabled.structurallyInvalidImportNeverReachesSigningOrCommitec60d10f91psbt.enabled.nodeReadinessAndIndependentSpend (nonfinal-locktime and below-advertised-relay-fee rows);psbt.enabled.nodeReadinessAndIndependentSpend:mempool-replacement-accepted;psbt.enabled.broadcastSignedPsbtIsKnownByItsFinalizedIdentity;PsbtFeeTests::finalizedTransactionAdmissionUsesExactPublicNodeRpc(eviction-lookup-exception-is-disclosed, malformed-eviction-lookup-is-disclosed)ec60d10f91OptionsModelTests::capturedResetKeepsOriginalBackupAcrossCompletion;OptionsModelTests::failedOnboardingWriteKeepsLegacyProxyForRetryeaffaa2062PruneDraftTests(whole class);settings.enabled.configuredPruneTargetSurvivesToggleAndRestartNotice;settings.enabled.manualPruneIsShownAndTurnsOffOnlyAfterTheRebuildWarningeaffaa2062SendCreate::test_failed_maximum_exposes_original_cause_and_refresh;send.enabled.oversizedMaximumPreservesCoreCauseAndRecoversWithFewerCoins;WalletQmlModelTests::coreApiFeePreviews:maximum-fallback-disabled-custom-recovery4f980d9e2aconsole.*.secretRequestsStayRedactedAfterClear38609d1313send.enabled.localizedTypedSendPreparesExactOutput;receive.enabled.localizedTypedRequestPersistsExactAmount(14 rows in total)6b02a94157wallet.enabled.backupRefusalPreservesSelectedAndFinalFilesd7d8c2919eTypedReceive::test_new_editor_does_not_inherit_the_previous_native_undo_context;TypedReceive::test_blank_amount_edit_cannot_be_undone_into_the_next_blank_request;receive.enabled.activityRequestUndoStaysWithTheOpenedRequest1f8225cb99WalletReservationTests::persistedReservationsKeepExactWalletIdentity1af84d1e19send.enabled.reselectingCustomPreservesTheReviewedExplicitRate4f980d9e2asend.enabled.avoidReusePolicyFiltersDirtyOnlyBalance;send.enabled.avoidReusePolicyGovernsMaximumBadgeAndPreparedInputs4f980d9e2aOptionsModelTests::coreSettingsSessionRevertingToDefaultPersistsExplicitOverride;settings.enabled.returningBooleanSettingToDefaultOverConfigPersistsExplicitOverrideeaffaa2062receive.enabled.publishedNbspSignatureVerifiesThroughTheNativeEditor;receive.enabled.pastedNbspMessageKeepsExactBytesForVerifyAndSign1f8225cb99settings.*.savingProxyDraftCommitsBothEntries;settings.enabled.proxySaveWriteFailureKeepsBothEditsAndPersistsNothingeaffaa2062receive.enabled.createRequestFromAddressDetailsAsksBeforeReplacingADraft (keep-editing and discard)1f8225cb99ActivityList::test_open_amount_range_keeps_committed_values_when_history_maximum_changes;activity.enabled.requestAmountsAboveTransactionsStayReachableUnderThePaymentRequestFilter;activity.enabled.coinAmountRangeKeepsTheDraggedMaximumWhenALargerCoinArrives1f8225cb99send.enabled.uppercaseBech32RecipientRemainsRecipientOutput4f980d9e2aActivityFilterProxyModelTests::relativeDateRefreshUsesManualClockAndRejectsYesterdayBeforePublish;ActivityFilterProxyModelTests::automaticDateTimerMovesTodayPastMidnightWithoutAnotherEdit1f8225cb99interface_qml_preinit_onboarding.py(asserts exit status 1 on an initialization failure)eaffaa2062wallet.enabled.rpcTrailingSeparatorHasOneCanonicalCatalogIdentity;wallet.enabled.trailingSeparatorStartupWalletIsOneOpenRowAndCreationRejectsIt1af84d1e19payment-import.enabled.clipboardOfferComparesPublicMessageIndependentlyOfPrivateNotee1d473b4c1ActivityList::test_two_live_grouping_views_and_reopen_keep_the_last_explicit_choice1f8225cb99PeerListModelTests::displayedPeerIdSearchPreservesOrdinaryText60c02c01a0SendCreate::test_sweep_alerts_follow_the_current_amount_unit;fee-bump.enabled.speedUpFeesFollowTheGlobalDisplayUnit;send.enabled.sendAllReviewFollowsAGlobalDisplayUnitChangeec60d10f91activity.enabled.sharedSendReviewAddressFormattingFindsTheOriginalActivityAndCsv1f8225cb99ActivityFilterProxyModelTests::skippedCivilDayDoesNotExcludeValidInclusiveEnd1f8225cb99PsbtWorkTests::exportReviewOwnsOriginalDocument;send.enabled.preparedReviewAndExportRemainStableWhenMoreFundsArrive(both check version 0; imported PSBTs keep their version)1f6f0f6faaUiPreferencesTests::localAndCjdnsPeersHaveANetworkChoice;PeerListModelTests::networkFilterMatchesCjdnsAndLocalPeers(CJDNS and Local network choices)f29ee4b0a2settings.*.quitDropsAnUnsavedNumberSettingDraft;settings.*.quitDropsAFocusedTextSettingEdit(an unconfirmed edit is discarded at quit)2d35fafc20send.enabled.maximumHandoverClearsTheFormerRecipient;send.enabled.maximumHandoverNamesTheRecipientNeedingAttention4f980d9e2anavigation.*.nativeFileRouteCannotNavigateBehindTheOwnedWalletModal;navigation.enabled.nativeWalletCommandsCannotRunBehindTheAddWalletWizard60c02c01a0activity.enabled.listAtTheTopStaysAtTheTopWhenAConfirmationArrives;activity.enabled.scrolledListStaysWhereTheUserLeftItWhenAConfirmationArrives(the list stays where the user left it)6afb4b60b5payment-import.enabled.equalImportedAmountReplacesMaximumIntentWithoutChangingTheRequest4f980d9e2alifecycle.*.quitWhileHiddenOrMinimizedShowsTheShutdownPage(the window is shown and raised; the minimized row cannot stay minimized offscreen, so it needs a macOS check)0532559ac6DesktopWallets::test_close_prompt_warns_about_pruning_only_on_a_pruned_node(warns only when the node is pruned)37695c901cActivityList::test_calendar_draws_every_day_of_every_month_once, also run as CTestbitcoinqml_calendar_midnight_dstwithTZ=Africa/Cairoa372b92f97.5is sent as 5 sat/vBFeeSelectionTests::exactRateTransport(leading-period rows);send.enabled.customRateTypedWithLeadingPeriodKeepsItsValue1ec57d4941RpcConsoleModelTests::explicitTargetsReplaceAmbiguousConsoleIngress;console.enabled.externallyLoadedWalletDoesNotRetargetTheConsole;RpcConsoleModelTests::historyRecallIsRefusedOnceWhenTheWalletTargetChanged;console.enabled.recalledCommandAsksBeforeRunningInAnotherWallet60c02c01a0FormControls::test_passwordTextFieldDropsPastedLineEndingsOnlyForANewPassphrase;WalletCreationFlow::test_create_form_drops_pasted_line_endings_from_the_passphrase;WalletPasswordSettings::test_update_password_drops_pasted_line_endings_only_from_the_new_passphrase;WalletPassphrasePopup::test_unlock_prompt_keeps_a_pasted_line_ending(only new-passphrase fields drop them)e1c089831eWalletPassphrasePopup::test_reopen_starts_masked_after_a_revealb50879a359WalletPassphrasePopup::test_keys_typed_during_the_fade_in_reach_the_passphrase_field91c4d6d70dTransactionActivityModelTests::usesPrivateRequestNotesWithoutChangingStoredData;TransactionActivityModelTests::queuesWalletNotificationsAndRetainsStableIndexes(payments fall back to the address label)1510f0323bAsyncOptionsTests::manualTransactionLinksFollowTheSettingWhileAViewIsOpen;TransactionDetail::test_thirdPartyTransactionLinks_follow_the_setting_while_the_page_is_open60c02c01a0receive.enabled.receiveStartsFromTheConfiguredAddressType(legacy, bech32, p2sh-segwit and unset rows: a saved choice, then an explicit-addresstype, then Taproot)111c2c970cnode.*.runtimeQuestionMakesTheHiddenNativeWindowReachable;node.enabled.runtimeQuestionRestoresTheMinimizedNativeWindoweaffaa2062SendCreate::test_review_sweep_return_key_keeps_the_review_and_sends_nothing;DesktopWallets::test_return_key_in_the_update_prompt_does_not_confirm_it;WalletCreationFlow::test_return_key_in_the_unencrypted_warning_does_not_create_the_wallet;DesktopWallets::test_return_key_in_the_close_prompt_keeps_the_wallet_open4983adcb0dAddressed (19; partly verified, stay open)
EffectiveSettingsTests::unsupportedProxyListsStayVisibleAndCannotBeErased;EffectiveSettingsTests::perNetworkProxySurvivesEveryEditorPath;SettingsPreservationTests::setupKeepsPerNetworkProxyFromConfiguration;settings.enabled.configuredPerNetworkProxySurvivesSettingsEditsWalletPasswordSettings::test_set_password_explains_older_backup_coverage;wallet.enabled.settingsSetPasswordExplainsChangedBackupCoveragePsbtFeeTests::finalizedTransactionAdmissionUsesExactPublicNodeRpc;psbt.enabled.importedPsbtExportChangesOnlyWhenSigned;psbt.enabled.closingAnImportedReviewKeepsANewerPaymentRequestDraftnode.*.invalidatedHeaderReadbackMatchesCore;NodeModelTests::informationRowsReopenFromCacheWhileStatusReadIsHeldwallet.enabled.rpcLoadRacingPickerOpenKeepsTheGuiIntentAndSelection;wallet.enabled.stalledWalletDirectoryReadsKeepTheGuiResponsive;wallet.enabled.closingWhileCoreHoldsTheWalletRegistryKeepsTheGuiResponsivereceive.enabled.typedReceiveRejectsOversizeQrAndRecoversWithoutBlankExport;receive.enabled.receiveWorkWaitsForABusyWalletOffTheGuiThread;receive.enabled.concurrentReceiveDefaultsStayPerWallet;receive.enabled.deletingARequestLeavesTheSameIdInAnotherWalletWalletTransactionTests::selectedSpentMissingAndBadIndexNeverReachConstruction;send.enabled.viewCoinsDropsTheMarkOfASpentCoin;send.enabled.temporaryReorgAbsenceKeepsTheManualSelection;send.enabled.displayUnitChangeDoesNotRefreshTheCoinList;send.enabled.staleCoinContextActionCannotPersistATemporaryLockSendCreate::test_psbt_save_error_remains_visible_in_review;psbt.enabled.psbtImportSigningAndBroadcastStayOffTheGuiThreadBumpTransactionModelTests::confirmFeeBump_rechecksEligibility;psbt.enabled.feeBumpPreparationAndCommitStayOffTheGuiThreadcs_walletin Corewatchonly.enabled.heldSignerProcessDoesNotBlockTheWalletPicker;fee-bump.enabled.failingExternalSignerEndsSpeedUpWithARetryableFailure;SignerDiscoveryTests::timeoutDoesNotCancelOrStartAnotherProcessreceive.enabled.sendOutcomeReportsObservationOrRejectsStaleReview:broadcast-disabled;send.enabled.localMempoolRejectionIsNeverReportedAsSenttestmempoolacceptpassed cannot be produced deterministically; reporting it needs a typed commit receipt from CoreQmlFileDialogTests::chooserAdmissionRejectsOverlapAndReentry;QmlFileDialogTests::cancellingTheVisibleChooserReleasesModalityAndAdmissionTransactionActivityModelTests::pendingTotalTracksReplacementRoleChangesWithoutCountChanges;activity.enabled.reorgReturnedOriginalIsTheOnlyPendingVersionNotItsEvictedReplacement;activity.enabled.incomingReplacementIsTheOnlyPendingPayment;activity.enabled.expiredPaymentLeavesPendingWithoutABlockEffectiveSettingsTests::startupConstraintFamilies;EffectiveSettingsTests::unresolvableProxyHostCannotBeSavedForTheNextStart-proxyby a functional test, not for-onionreceive.enabled.labelCommitPreservesTheNextRowsFocusedEditor;activity.enabled.addressListKeepsItsScrollPositionAcrossRefreshes;activity.enabled.coinListsKeepTheirScrollPositionAcrossRefreshesreceive.enabled.receiveOffersOnlyTypesTheActiveDescriptorsCanGenerate: legacy-, segwit-, p2sh-segwit- and taproot-only wallets get an address of their type on the first attempt; a type Core refuses is no longer offered, and choosing it reports that the wallet cannot generate itQEXPECT_FAILin the test)send.enabled.feePreviewLimitationKeepsCoreReviewAuthoritative: Review and the PSBT use Core's fee; the gap is pinned bytaproot-preview-deferral(1530 vs 1650 sat)PsbtWorkTests::ownedOutputReviewDoesNotDependOnSigning;psbt.enabled.ownOutputsArePresentedTheSameWithoutSigningKeysCoinsListModelTests::backToBackRefreshesUpdateRowsInPlaceWithoutResettingTheModel;AddressListModelTests::backToBackRefreshesUpdateRowsInPlaceWithoutResettingTheModel: back-to-back refreshes update rows in place, with no model resetRelated but not claimed
Production fixes made while adding regression tests
Each is in its issue's commit, beside the test that failed without it.
#1072 (broad, review closely): Activity takes "pending" from Core's mempool membership, not the replacement marker. A reorged-back original showed as Replaced and its evicted replacement as pending. Touches
activityreader,transactionactivitymodel,walletpayments, CSV export and Activity QML ("Not in mempool").#977: a signer failure during Speed Up was stuck in Uncertain; now a retryable Sign failure (
walletbump.cpp).#974: View coins kept marks of spent coins; a unit change rebuilt every coin list.
#594: setup offered a per-network proxy as editable and then refused Start; now read-only, as in Settings.
#1071: an accepted replacement names the transaction it evicts; if that lookup fails, the review says so instead of implying nothing is evicted.
#762: closing an imported review keeps a payment request applied while it was open; only a draft older than the review is cleared.
#1131: each console history entry records the wallet it ran in; recalling one while the console targets another wallet asks once, naming both, before running it there.
Also fixed with tests: the save confirmation stays inside the window for a long path; editing a wallet password clears the shown error; failing Activity status reads back off instead of retrying every second; a URI imported behind the send completion page survives Done; an imported PSBT offers signing when only this wallet's inputs are unsigned.
#1115: "Complete recipient N before continuing." (translations not regenerated).
Latest update, each with a test: a refused Mempool save no longer closes a later save's field; Speed Up no longer fails while the wallet is briefly busy; "use template" waits for a busy request store; receipts are not published after the request history; quitting during a wallet load, and Core messages during a wallet close, no longer wait on a queued operation.
Latest update: a popup crash on Qt 6.8.4 (overlay parent), covered by the existing popup case (48/48 crashed before, 0/48 after).
Latest update (cross-platform CI and reliability fixes folded into owning commits): avoid Apple
libc++std::functionSBO self-move inqml/execution.h/qml/executor.cpp; avoid Qt 6.2QThreadTLS teardown intest/test_uipreferences.cpp; keep local address-note input across async loading publishes (TextEditorModel::hasLocalInput); isolateQSettingsand wait for async geometry restore, draft validation, and revision-matched fee estimates in flaky tests; move pre-PR fixes (including Qt 6.4NavigationSplitViewPropertyChangesBINDABLExLSan leak, Qt 6.2SendCoinSelectionheight binding loop,test_payment_importQStringBuilderautoUB,SettingsLanguageQt 6.4 width, andTransitionsFinishedvisual-tree traversal) into #1090 and rebase #1096 and #1142 on top.Follow-ups, not built: per-network proxy editor (#594); backup reminder after encryption (#709); name the replaced transaction on the completion screen (#1071); Custom "6 blocks" label without estimates (#1015).
Changes needed upstream
No Core or Qt code is changed here. Where the app works around a missing Core
guarantee, the workaround is noted below so it can be retired later.
Correctness: the app works around these, but the full guarantee needs Core
row without updating the in-memory flag, so unlock and reload restore the lock
(Core bug). Core also sends no notification when RPC locks or unlocks coins.
The app refuses to persist an already locked coin. Blocks #995.
Wallet::commitTransactionreturns nothing, so the app cannottell disabled broadcast from a mempool rejection or report the reason. It
reports the outcome as unknown instead of "sent". Blocks #1008.
transactions itself.
signBumpTransactionfinalizes a signer's PSBT withoutverifying every input; the app verifies before committing. Signer device waits
hold
cs_wallet, blocking wallet RPC (#976), and signer subprocesses cannot becancelled.
receipt or shared closing token (#966), and no scoped unlock lease coordinated
with RPC relocking.
have no expected-version writes, so RPC writers can still race the app.
non-mutating capability query (#1088). The app learns a type is unavailable
only after Core refuses to generate it, by matching Core's "No %s addresses
available" message, which a typed error would replace.
Core picks the change type per transaction (a Taproot recipient gets P2TR
change). Matching it needs a read-only change-type query: the type Core's
TransactionChangeTypewould choose for given recipients. Until then thepreview can under-estimate by the change-output size difference; Review stays
authoritative (#1104, deferred).
Simplify and share: the app adapter works; a Core interface would remove it and
let other clients reuse it
#1071).
status (#1072).
typed signer enumeration, typed restore/migration results, exact fee and
maximum-send preparation, typed wallet capabilities, wallet-directory
inspection, a prepared startup configuration
and side-effect-free settings validation (#1074).
Qt
QV4/QtPrivate::qustrchr; nativeQFileDialogconstruction also races under ThreadSanitizer.qHashCombineforQPair<qint64,int>triggers an invalid-shift-basereport under UBSan; the app uses an ordered map instead.
GUI thread
Backend work stays off the GUI thread. A validation build probed every Core
Node,Chain,WalletandWalletLoadermethod and every subscriptionhandler's disconnect and destructor, and recorded calls on the GUI thread. Across
all integration and functional tests the app made none. The only
main-thread calls were in a headless profile-inspector helper, which has since been
removed. The probe was not rerun after the latest update.
A sampling profile of the GUI thread during the functional tests found the
remaining long stretches are QML creation, destruction and rendering, which must
stay on the GUI thread. Follow-ups, unchanged by this PR:
GlobalSettingswrites its settings file synchronously when QML callssetValue, and buildsQSettingsobjects on everyvalueread.ImageProviderrasterizes SVG icons synchronously (up to 133 ms observed); anasynchronous image provider would move this to a worker.
creating pages lazily or with an asynchronous
Loaderwould spread this out.Validation
Current head
e1c089831e8(stacked on#1096042d9388ddaand#109019a75d973e4, rebased ontoqt6db9aa8429ac). Optional developer tooling (coverage instrumentation, focused test runner, QML dev-resources mode) and extra static-analysis gates (qml_api_schema.py,layout_checks.py,test_clang_tidy_selection.py) were split out for a separate follow-up PR.e1c089831e8(post-cleanup, Qt 6.10.2,-Werror,-DENABLE_QML_LINT=ON):-Werrorbuild of all targets passed.cmake --build build --target qml_lintpassed with 0 warnings/errors across all 253 QML files in both Qt 6.5 and Qt 6.2 compatibility trees.python3 ci/lint.py --scope=apppassed cleanly.clang++-21 -Werrorsyntax/warning sweep (-Wall -Wextra -Wunused-private-field -Wshadow-field) passed across all 147 / 147 test translation units.ctest(all 85 / 85 suites:unit,qml, and all 10integrationsuites): 3 consecutive rounds passed (255 / 255 suites, 0 failures) on exact final heade1c089831e8(following the unload-during-model-creation fix inSession::startWithandWalletManager::attachWallet, plus targeted stress runs ofscheduleFeeEstimates_invalidatesStalePreviewState50/50,capturedSecretTransportRefusalDoesNotCallNativeLoader20/20,reconciliationBatchesActivityRebuilds20/20, andreceive.enabled.deletingARequestLeavesTheSameIdInAnotherWallet5/5).e1c089831e8: 14 / 14 passed (Ubuntu 22.04, Qt 6.2,Ubuntu 24.04, Qt 6.4,Ubuntu 26.04, Qt 6.10,app lint (Core rules),core lint (Core rules),Clang-tidy (Core rules), all threeAddress, leak, undefined and integer sanitizersshards,linux-x86_64,macos-native,build (ubuntu-24.04),build (macos-15), andqml-functional-tests).13088febc8c: 14 / 14 passed (and#1090: 8 / 8 passed;#1096: 12 / 12 passed):Build and Test:Ubuntu 22.04, Qt 6.2,Ubuntu 24.04, Qt 6.4,Ubuntu 26.04, Qt 6.10(qml_lint),app lint (Core rules),core lint (Core rules),Clang-tidy (Core rules), and all threeAddress, leak, undefined and integer sanitizersshards (baseincludinginterface_qml_startup.py,interface_qml_shutdown.py, andinterface_qml_backend_guarantees.py;integration 1/2; andintegration 2/2). Leak detection is disabled for QML component tests in CI.Depends Build:linux-x86_64,macos-native.Artifacts:ubuntu-24.04,macos-15,windows-2022.GUI Functional Tests.63d5024d474and97a21cf9cba):capturedSecretSurvivesQueueDelayAndQuietClose; GUI/integration launches hit a Qt-internal use-after-free (QV4/QtPrivate::qustrchr), and with halt off four integration cases passed with no data race.Not checked:
interface_gui.py; manual interactive verification in a native macOS window for macOS-specific UX/accessibility issues (#1066, #1068, #1076, #1116, #1119, #1126 minimized, and #1139 with a real Return key).2 additional verified findings in the Review report.
Earlier concerns neither republished nor resolved: 20 minor findings · 8 suggestions. See the Run archive linked from the Review report for their assessments.
🔴 Major ·
Sendrecords mixed-input PSBTs before failing to submit themA collaborative PSBT with an already-signed foreign input can now offer Send, but an input parent absent from the reviewing wallet makes pinned Core throw after recording the transaction and before submitting it.
Location: qml/psbtwork.cpp:647 (head).
🟠 Minor · The same pasted password no longer matches at creation and unlock
When the clipboard contains CR/LF, new-passphrase fields remove it but unlock fields retain it, so repeating the same paste fails; typing the visible password or pasting without line endings still works.
Location: qml/controls/PasswordTextField.qml:20 (head).
🟠 Minor ·
ENABLE_WALLET=OFFretains dependencies on the excludedWalletModelThe node-only source filter removes
WalletModelbut retainswalletmanager.cpp/.h, leaving unresolved wallet dependencies in the build; this conclusion is from source inspection, not an observed configure-and-link run.Location: CMakeLists.txt:55 (head).
🟠 Minor · A definite fee-bump refusal leaves Speed Up in
UncertainAn unobserved race that makes
commitBumpTransactionreturnfalseleaves Speed Up inUncertain, blocking preparation even though pinned Core has not committed a replacement.Location: qml/walletbump.cpp:205 (head).
🔵 Suggestion · Signer approval occupies the
Coreworker shared by every walletA hardware-device wait keeps navigation responsive but stalls other wallets' queued backend reads, opening and preparation because their
Corequeues share the worker running approval.Location: qml/executor.cpp:87 (head).
🔵 Suggestion · Speed Up does not apply Send's
avoid_reusepolicyAs in base and Core's
bumpfee, Speed Up can automatically add a reused output on anavoid_reusewallet, despite Send now honoring that opt-in policy.Location: qml/walletbump.cpp:106 (head).
Review coverage was incomplete.
Reviewed:
e1c089831e86· Review reportI noticed that several settings fields on Windows show white text on a white background in the dark theme, making their values difficult to read. This affects the mempool size, block storage target, database cache, script verification threads, and proxy address fields.
It looks like the settings refactor in
a3e15f8244made the shared component use the app's theme for the text color, while the background stayed light. Could the background of these fields follow the selected theme as well?I was able to reproduce #1072 on
50767aca7e. I sent 0.005 BTC from one wallet to another, left Activity open in the receiving wallet, and bumped the fee in the sending wallet. The Pending total doubled to 0.010 BTC, even though only the replacement transaction was in the mempool.I also checked what happens when an incoming transaction expires from the mempool. Core showed a pending balance of zero, but Activity still showed 0.005 BTC. No new blocks were mined in either case.
While testing
50767ac, I changed a setting and tried to switch to another section. The dialog asking whether to save my changes stayed open when I pressed Esc. I also noticed that all three buttons had the same orange highlight.Could we use the shared
AlertPopuphere, with Save as the only highlighted button? It would be nice if pressing Esc worked like Keep editing and took me back to the form with my changes intact.I ran into one more issue in Settings. I started the app with
-dbcache=0, changed Mempool size to 400, and tried to switch to another section. This time I clicked Save in the dialog and got the errorThe database cache must be at least 4 MiB.I hadn't changed the database cache setting in the UI. Without
-dbcache=0, the same change saves fine.Please link the issues that are resolved in this PR for easier tracking in the issues list
While testing the fix for #1081 on Windows
ba4b20f, I noticed I couldn't undo a paste in the Send amount field.With the locale set to
de_DEand BTC selected, I typed987in the empty field, selected it with Ctrl+A, and pasted1,23456789with Ctrl+V. I tried Ctrl+Z right away to get987back, but the field still showed1,23456789The app must continue to ship as a single binary.
This creates and ships a second executable, so the application no longer satisfies the single-binary requirement. The pre-refactor onboarding code used
wallet::ListDatabases(path)directly—the Core wallet helper outside the public interfaces layer—and that is the intended exception for this lookup. Restore that approach and remove the helper process, executable target, and artifact entries.Additional findings from review of the current head.
This early focus handoff is followed by the unconditional onOpened: focusContent() below. If the user tabs during the fade-in, the opened handler moves focus back to the first field when the animation ends; I reproduced this with the password dialog on Qt 6.10. Guard the later call with the same inside-popup check or perform only one focus handoff.
Core backs up only to the staging path, then this replaces the approved destination outside Core's database locking. On Unix, selecting another loaded wallet's wallet.dat unlinks that live database. The running wallet keeps the old inode, but reopening the path loads the source wallet instead; I reproduced this exact sequence. Reject destinations that resolve to a loaded wallet database, including aliases, or keep the final installation under Core's backup safeguards.
The review can still be closed while sendBusy is true. Hiding it sets active=false, which cancels the presentation and drops its observer while the background work can still commit. The wallet applies the transaction, but this page never emits transactionSent, so the completion screen and clearSentForm() are skipped and the user receives no result. Disable dismissal while pending or retain a result owner until the send reaches a terminal state.
With QStringBuilder enabled, these auto-return lambdas deduce builder types that reference temporary QString values created in the return expression. The temporary is gone when QTRY_COMPARE later converts the builder; the sanitizer run reports a stack-use-after-return here. Give each lambda an explicit QString return type or materialize a QString before returning.
DesktopWallets binds selectedWallet.balanceSatoshi, but this mock still exposes only the formatted balance and balanceKnown. Switching to SAT on Qt 6.4 passes undefined to displayUnitLabelForAmount(qint64), deterministically failing the main-routing test. Add a qint64 balanceSatoshi property and keep it consistent with balance.
This new case fails in the supported Qt 6.2 job before reaching this assertion. SendCreate.qml reports ReferenceError: root is not defined from the nested sendCompletePage handler, leaving navigation.count at zero. Route the activity signal through a stable id or property visible inside that Component context.
I retested the issues from my earlier comments on Windows with
02bca02and confirmed they're all fixed.I ran into another issue with the default settings. I cleared Mempool size, selected Storage, and clicked Save in the dialog. The dialog closed and I stayed on the Mempool page. I then entered
400and clicked Save settings at the bottom of the page. The value was written tosettings.json. The field disappeared, and the page showedThe settings editor is unavailable.I expected the field to stay visible and show400.I also noticed that Save settings, Discard edits, and Refresh all have the same orange highlight. They sit below the sidebar and show up even in Wallet settings. Could we put these buttons below the form in the sections where they apply, with Save settings as the only highlighted button?
Screenshots
Fixed in
7e911a3ffa. Onboarding useswallet::ListDatabases()again. The helper process, its executable target and its artifact entries are removed, so the app ships one executable.Fixed in
d630ea4afd.backup::Screenrefuses a destination that is the same file (fs::equivalent) as a wallet database or its-journal. The list holds every wallet in the wallet folder and every loaded wallet, so symlinked folders and hard links are refused too.backup::Writescreens the final path again right before it installs.Fixed in
b753f5326c.TransactionReviewController::canDismissis false while a send is submitting with no prompt open, and the close button and Escape follow it. The wallet now clears the sent draft when the send commits, so a forced hide no longer skips that step.Fixed in
3d8d80f543. Both lambdas returnQStringexplicitly, so no builder outlives its temporaries.Fixed in
b753f5326c. The completion page callstransactionReviewPopup.finish()andtransactionReviewPopup.viewTransaction(txid). These functions run in the popup's context, which outlives the page, so Qt 6.2 no longer reportsrootas undefined.Fixed in
244be272b3. The mock wallet has aqint64 balanceSatoshiproperty that notifies withbalance.Fixed in
0923e37ffb. Both handlers callfocusContentUnlessInside(), soonOpenedno longer takes focus back from a field the user tabbed to during the fade-in.