3 suggestions
Optional improvements
[suggestion] · Rebroadcast is offered without transaction eligibility checks
Both menus offer rebroadcast for confirmed, mined, cancelled and conflicted transactions, although the pinned dependency lacks the manual API needed to verify the resulting backend response.
Location: qml/components/TransactionActionsMenu.qml:63 (head).
Details and suggested fix
The new ContextMenuButton has no visible or enabled condition, and neither caller supplies eligibility information. In contrast, TransactionDetail.qml already gates fee bumping on known status, zero depth and activity. The pinned CWallet::SubmitTxMemoryPoolAndRelay rejects abandoned, coinbase and nonzero-depth transactions, but whether the missing manual entry point uses that helper is unverified; this is not evidence of unwanted relay. Once the backend prerequisite is supplied, expose its intended transactionCanBeBroadcast predicate through the model and bind the button to it, so users are not offered an operation for ineligible transactions.
[suggestion] · In-flight rebroadcasts have no pending state or duplicate guard
Once a compatible backend is supplied, accepted clicks leave no pending feedback and allow duplicate jobs for the same transaction, whose completions cannot distinguish requests.
Location: qml/components/TransactionActionsMenu.qml:77 (head).
Details and suggested fix
autoClose: false keeps the menu open, but onTriggered clears the status and leaves the button enabled. Each accepted model call submits a separate executor task and returns an empty string. Repeated clicks therefore queue duplicate backend calls, and already queued work drains even during shutdown. The completion handler checks only the current wallet connection, opened and txid, so an earlier completion can replace the status while another request is pending, including after closing and reopening the same transaction's menu. The captured wallet and parsed txid prevent execution from being redirected by wallet switching. Track pending requests by wallet and txid, show an immediate translated pending message, and disable or coalesce the action until completion while preserving that state across menu reopening.
[suggestion] · New QML tests bypass the production rebroadcast bridge
The added tests exercise a replacement model with single, which the production parser rejects, leaving the new bridge's validation, result conversion and completion wiring uncovered.
Location: test/mocks/mockwallet.h:165 (head).
Details and suggested fix
MockWalletQmlModel::rebroadcastTransaction always accepts the invocation and queues its own configurable completion, so the activity-menu assertions do not call WalletQmlModel::rebroadcastTransaction. A regression in its availability check, Txid::FromHex validation, LocalizedString conversion or transactionRebroadcastFinished emission would leave these tests unchanged. The new MockWallet::rebroadcast_transaction_fn and call counter have no test caller, although MakeWalletModel and DrainWalletModel already provide a suitable harness. Add production-model tests using a valid 64-character hexadecimal txid and QSignalSpy for success, a backend error and an exception, plus synchronous invalid-txid and unavailable-wallet cases that assert no backend call.
Background
Ralph's summary of historical context for the behaviour affected by this change. The historical record reviewed here is incomplete.
Unresolved disagreements
The inspected record does not resolve whether incoming-payment rebroadcast should remain automatic, be configurable, or require manual recovery. Privacy advocates emphasize cheap attacker-created payments that reveal passive recipients; opponents emphasize recipients' incentive to obtain confirmation and the need for a parent transaction to enter the local mempool before its CPFP child can be broadcast.
This explains why manual rebroadcast matters for received transactions as well as sent transactions. It also identifies the tradeoff behind the proposed action without treating either side's position as an adopted backend contract or a finding about this PR.