3 minor findings · 8 suggestions
Earlier concerns neither republished nor resolved: 1 minor finding · 1 suggestion. See the Run archive for their assessments.
Findings
[minor] · Some rebroadcast failures return an empty explanation
Fee-limit failures leave rebroadcastwallettx with an empty RPC error message and the GUI with an empty “Rebroadcast Failed” dialog.
Location: src/wallet/wallet.cpp:1844 (head).
Details and suggested fix
For an otherwise eligible wallet transaction absent from the mempool, exceeding a positive -maxtxfee or -maxfeerate limit makes BroadcastTransaction return an enum without setting err_string. The chain adapter reduces that enum to false, and RebroadcastSingleTransaction uses the untouched empty string as the entire error message. This can affect incoming payments or transactions created before the user lowered the limits. An already-confirmed transaction with an unspent output takes the same empty-error path if its confirmation has not reached the wallet yet. Preserve a mapped TransactionError message, as sendrawtransaction does, or provide a fallback when err is empty.
[minor] · Rebroadcast eligibility can use stale wallet confirmation state
With block notifications queued, rebroadcastwallettx can reject a newly disconnected transaction as confirmed because it checks unsynchronized wallet state.
Location: src/wallet/rpc/transactions.cpp:1110 (head).
Details and suggested fix
RebroadcastSingleTransaction checks GetTxDepthInMainChain, which uses the wallet's stored transaction state and last processed block. Taking cs_wallet does not drain queued notifications. A pending block disconnection can therefore cause a false “tx is confirmed” rejection; a pending confirmation can instead pass eligibility and fail later in node submission. Retrying after notification processing recovers, but the result needlessly depends on timing. Call wallet->BlockUntilSyncedToCurrentChain() before RebroadcastSingleTransaction, while cs_wallet is not held, as abandontransaction does.
[minor] · Rebroadcast indexes a selection that can disappear after menu setup
If the selected transaction row is removed while the context menu is open, activating rebroadcast accesses an empty selection out of range.
Location: src/qt/transactionview.cpp:403 (head).
Details and suggested fix
contextualMenu() validates the initial selection, but QMenu::popup allows model updates before activation. rebroadcastTx() then reads the selection again and calls at(0) without checking it. A CT_DELETED update removes the transaction's rows and can leave this list empty. Return when the selection is empty and validate the parsed Txid before using it. The only identified removal producer is RemoveTxs, reachable through the trusted removeprunedfunds RPC with -deprecatedrpc=removeprunedfunds; no production occurrence was established. The neighboring abandon and bump slots share this unchecked pattern.
Optional improvements
[suggestion] · GUI rebroadcast omits the RPC's privacy warning
The GUI immediately requests public rebroadcast without explaining the sender/receiver association risk described in the RPC help, including for eligible incoming payments.
Location: src/qt/transactionview.cpp:407 (head).
Details and suggested fix
rebroadcastTx() calls the wallet directly and displays a dialog only on failure. The eligibility check permits incoming payments as well as outgoing transactions, and the wallet selects MEMPOOL_AND_BROADCAST_TO_ALL. Although the menu label communicates an explicit request to rebroadcast, it does not explain that doing so may reveal the node's involvement as sender or receiver. Add a confirmation dialog or an equally visible notice carrying the RPC's privacy warning before submitting the transaction.
[suggestion] · Manual wallet rebroadcast does not use private broadcast
With -privatebroadcast enabled, switching from the sendrawtransaction workaround to the new RPC or GUI action changes the requested relay method from private broadcast to public relay.
Location: src/wallet/wallet.cpp:1843 (head).
Details and suggested fix
sendrawtransaction selects NO_MEMPOOL_PRIVATE_BROADCAST when -privatebroadcast is enabled, but RebroadcastSingleTransaction hard-codes MEMPOOL_AND_BROADCAST_TO_ALL. The option's help explicitly excludes wallet transactions, so this does not violate its documented scope, but it is a material privacy difference from the workflow this feature replaces. State explicitly in the new RPC help and GUI notice that private broadcast is not used. Honoring the option instead would require more than changing the enum, because SubmitTxMemoryPoolAndRelay currently marks every successful submission as TxStateInMempool.
[suggestion] · Rebroadcast performs blocking wallet work on the GUI thread
The new synchronous wallet calls can block the GUI on wallet and chain locks, and rebroadcast also runs mempool admission when the transaction is absent.
Location: src/qt/transactionview.cpp:376 (head).
Details and suggested fix
contextualMenu() synchronously queries eligibility, and rebroadcastTx() synchronously submits the transaction. The latter holds cs_wallet while BroadcastTransaction acquires cs_main and, for absent transactions, calls ProcessTransaction. Lock contention or admission work therefore prevents the GUI event loop from progressing. Although neighboring actions are also synchronous, the developer notes explicitly recommend avoiding new blocking wallet-interface calls on this thread. Run at least the rebroadcast operation on a worker and deliver its result back to the GUI asynchronously.
[suggestion] · Manual rebroadcast tests omit re-admission and rejection paths
Both tested transactions remain in the mempool, so the new test does not protect recovery of evicted transactions or the RPC's rejection contract.
Location: test/functional/wallet_resendwallettransactions.py:52 (head).
Details and suggested fix
The two sendtoaddress calls are followed directly by manual rebroadcast, with no eviction in between. BroadcastTransaction therefore takes its existing-mempool reannouncement branch, so an RPC regression that preserves reannouncement but breaks re-admission could escape these assertions. The test also makes no failing calls to verify the new eligibility errors. Evict an eligible transaction, call rebroadcastwallettx, and assert both mempool re-entry and announcement to a fresh peer. Keep another evicted transaction out to check single-transaction isolation, and add focused rejection assertions for unknown, confirmed, abandoned, and broadcast-disabled cases.
[suggestion] · Rebroadcast duplicates Abandon's menu mnemonic
The English menu assigns “b” to both Abandon and Rebroadcast, creating an ambiguous keyboard mnemonic when both actions are enabled.
Location: src/qt/transactionview.cpp:172 (head).
Details and suggested fix
& marks the following character, so both A&bandon transaction and Re&broadcast transaction use “b”. Both actions can be enabled for an eligible unconfirmed transaction absent from the mempool. Under Qt mnemonic handling, duplicate matches cycle the selection rather than directly activating a unique action; platform behavior and translations may differ. Use an unused letter such as Rebroadcas&t transaction. &Rebroadcast would instead collide with Copy &raw transaction.
[suggestion] · RPC help joins two sentences without whitespace
The privacy warning and transaction-listing guidance render as “transaction.Use listrawtransactions”.
Location: src/wallet/rpc/transactions.cpp:1094 (head).
Details and suggested fix
These adjacent C++ string literals concatenate without a separator, so the help description contains ...in the transaction.Use listrawtransactions.... Add \n at the end of the privacy-warning literal to separate the sentences.
[suggestion] · Unknown transaction IDs use a different error code from related RPCs
rebroadcastwallettx returns -8 for a non-wallet txid, while gettransaction and abandontransaction return -5 for that condition.
Location: src/wallet/wallet.cpp:1836 (head).
Details and suggested fix
The not-found branch returns WalletErrorCode::InvalidParameter, which the RPC layer maps to RPC_INVALID_PARAMETER. Related transaction RPCs instead use RPC_INVALID_ADDRESS_OR_KEY with “Invalid or non-wallet transaction id”, so callers cannot handle this lookup failure uniformly. Align the new RPC by checking wallet membership under cs_wallet in the RPC handler and returning -5, following abandontransaction. This is an API-consistency recommendation, not a change to an existing RPC's contract.
[suggestion] · The new rebroadcast workflow has no release note
The new wallet RPC and transaction-menu action lack a PR-specific release note describing their availability and privacy caveat.
Location: src/wallet/rpc/transactions.cpp:1092 (head).
Details and suggested fix
rebroadcastwallettx and the “Rebroadcast transaction” menu action are user-visible additions, but this PR includes no release note. The developer notes call for a PR-specific note for new features, API additions, and visible end-user changes. Add one describing both entry points and warning that rebroadcast may reveal the node's involvement as sender or receiver.
Earlier concerns
Earlier reports raised these, with the titles and severities shown there. This review neither republished nor resolved them.
- [suggestion]: Test manual rebroadcast after mempool removal
- [minor]: Clarify manual rebroadcast behavior while the chain is not ready (earlier report)