3 minor findings · 8 suggestions
Earlier concerns neither republished nor resolved: 1 suggestion. See the Run archive for their assessments.
Findings
[minor] · Some rebroadcast failures return an empty error message
Fee-limit and already-confirmed failures can leave the new RPC error and GUI failure dialog without an explanation.
Location: src/wallet/wallet.cpp:1844 (head).
Details and suggested fix
An eligible transaction absent from the mempool can pass test acceptance but exceed the wallet's positive -maxtxfee or -maxfeerate limit. BroadcastTransaction then returns a fee-limit enum without setting err_string. Its ALREADY_IN_UTXO_SET return also leaves the detail empty, which can occur before the wallet processes a confirming block. The chain adapter reduces the enum to false, and this wrapper exposes the untouched string as RPC_MISC_ERROR or an empty GUI failure message. Populate the chain adapter's detail from TransactionErrorString(err) when it is empty, and cover an evicted transaction above the fee cap. Incoming payments and transactions created before lowering the caps can trigger the fee path. No production occurrence was identified; the default limits of 0.1 BTC and 0.1 BTC/kvB make it uncommon unless the user lowers them.
[minor] · Rebroadcast can index an empty transaction selection
If filtering removes the selected row while the context menu is open, activating Rebroadcast can crash the GUI.
Location: src/qt/transactionview.cpp:403 (head).
Details and suggested fix
contextualMenu() validates the selection before opening a nonblocking QMenu::popup, but rebroadcastTx() fetches it again and immediately calls selection.at(0). A pending 200 ms search or amount-filter timer can hide the selected row between those events. The action remains enabled, so activating it can reach an out-of-range access instead of declining the operation. Return when the freshly fetched selection is empty, and handle the optional parsed txid as contextualMenu() does. No observed occurrence was identified, so production impact remains unconfirmed.
[minor] · Rebroadcast RPC can check stale confirmation state
Queued block notifications can make rebroadcastwallettx wrongly reject an unconfirmed transaction or report the wrong failure for a confirmed one.
Location: src/wallet/rpc/transactions.cpp:1110 (head).
Details and suggested fix
RebroadcastSingleTransaction checks eligibility using the wallet's stored transaction state and last processed block height. If a disconnect notification is still queued, a transaction now outside the active chain can remain TxStateConfirmed and be rejected as confirmed. A queued connect can produce the opposite mismatch, allowing eligibility to pass before broadcast rejects the confirmed transaction. Retrying after the queue drains recovers, but the RPC should provide the same entry-time chain consistency as abandontransaction. Call wallet->BlockUntilSyncedToCurrentChain() before RebroadcastSingleTransaction, without holding cs_wallet.
Optional improvements
[suggestion] · GUI rebroadcast omits the RPC's privacy warning
The GUI submits incoming or outgoing payments for ordinary peer relay without warning that this may associate the node with the transaction.
Location: src/qt/transactionview.cpp:407 (head).
Details and suggested fix
rebroadcastTx() immediately calls the wallet and displays a dialog only on failure. The RPC help warns that rebroadcasting may reveal the node's involvement as either sender or receiver, but GUI users do not see that disclosure. Received payments pass the same eligibility checks as outgoing payments. Show a confirmation dialog carrying that warning and a cancel option before submission. This preserves the explicit manual action while letting the user assess its privacy tradeoff; normal peer relay filters still apply.
[suggestion] · Manual rebroadcast uses ordinary relay even with -privatebroadcast
Although -privatebroadcast excludes wallet submissions, replacing the sendrawtransaction workaround with the new action silently switches from private to ordinary peer relay.
Location: src/wallet/wallet.cpp:1843 (head).
Details and suggested fix
With -privatebroadcast=1, a properly configured sendrawtransaction request selects NO_MEMPOOL_PRIVATE_BROADCAST. RebroadcastSingleTransaction instead always selects MEMPOOL_AND_BROADCAST_TO_ALL, announcing through the node's existing relay connections. This matches the option's documented wallet exclusion, but the new RPC help and GUI do not explain the distinction. State explicitly in both entry points that manual wallet rebroadcast does not use private broadcast. Honoring the option instead would require more than changing the enum: SubmitTxMemoryPoolAndRelay currently sets TxStateInMempool on success, while private submission does not add the transaction to the mempool.
[suggestion] · Manual rebroadcast bypasses the sync-readiness safeguard
During chain rebuilding or sync, the new action can relay old wallet transactions that currently appear unconfirmed, whereas automatic resend deliberately waits.
Location: src/wallet/wallet.cpp:1843 (head).
Details and suggested fix
ShouldResend() checks chain().isReadyToBroadcast() because old wallet transactions can appear unconfirmed during reindex, import, or IBD. The manual eligibility and submission paths omit that check. When loading downgrades a transaction whose confirming block is not yet active to TxStateInactive, its depth becomes zero and the GUI can enable Rebroadcast. If it passes current mempool policy, manual submission can queue it for peer announcement despite syncing. Apply the readiness check to manual eligibility and return a clear syncing error. If explicit requests should deliberately override that safeguard, document the override and the potentially incomplete confirmation status instead.
[suggestion] · Manual rebroadcast test misses re-admission and single-transaction isolation
The new test checks reannouncement of mempool transactions, but not recovery after eviction, isolation of one request, or RPC rejection paths.
Location: test/functional/wallet_resendwallettransactions.py:53 (head).
Details and suggested fix
txid1 and txid2 are created by sendtoaddress with no intervening eviction, so both manual calls take the already-in-mempool path. Both calls also precede one combined announcement assertion, which could still pass if the first call rebroadcast both transactions. The existing eviction loop recovers through mockscheduler, not this RPC. Add two independent evicted transactions, manually rebroadcast one, and verify that only it re-enters the mempool and is announced to a fresh peer. Also cover rejection results for unknown, confirmed, abandoned, and block-conflicted transactions, disabled wallet broadcasting, and a fee-cap failure.
[suggestion] · Rebroadcast performs blocking submission on the GUI thread
Synchronous rebroadcast holds wallet and node locks and can run mempool admission, potentially stalling the GUI under contention.
Location: src/qt/transactionview.cpp:407 (head).
Details and suggested fix
contextualMenu() adds a synchronous eligibility call, and rebroadcastTx() synchronously submits through the wallet interface. Submission holds cs_wallet while BroadcastTransaction acquires cs_main and runs ProcessTransaction for a transaction absent from the mempool. The GUI event loop cannot process input while waiting for those locks or admission to finish. Run at least the submission on a worker, following the RPCExecutor pattern cited in the developer notes, and return the result to the GUI thread for the error dialog. This preserves submission behavior without blocking the view.
[suggestion] · Unknown wallet txids use a different RPC error code
rebroadcastwallettx returns -8 for a non-wallet txid, unlike the -5 returned by gettransaction and abandontransaction.
Location: src/wallet/wallet.cpp:1836 (head).
Details and suggested fix
The not-in-wallet branch returns WalletErrorCode::InvalidParameter, which the RPC maps to RPC_INVALID_PARAMETER. Neighboring transaction RPCs use RPC_INVALID_ADDRESS_OR_KEY for the same lookup failure. Consider checking wallet membership under cs_wallet in the RPC handler and returning -5, as abandontransaction does, while retaining the specific errors for ineligible wallet transactions. This would let callers handle unknown wallet txids consistently; it is an API-consistency improvement, not a backward-compatibility regression.
[suggestion] · RPC help runs two sentences together
The description renders the sentence boundary as transaction.Use listrawtransactions.
Location: src/wallet/rpc/transactions.cpp:1094 (head).
Details and suggested fix
The privacy-warning literal ends with a period but no whitespace, and the next literal starts with Use. C++ concatenates them without inserting a separator. Add \n at the end of the warning so the listing guidance starts on a new line.
[suggestion] · New rebroadcast entry points have no release note
The new wallet RPC and transaction-menu action lack the PR-specific release note requested for user-visible features.
Location: src/wallet/rpc/transactions.cpp:1092 (head).
Details and suggested fix
rebroadcastwallettx and the Rebroadcast transaction menu action introduce new ways to perform a wallet operation, but the PR adds no release note describing them. The developer notes request a PR-specific note for notable features and visible end-user changes. Add doc/release-notes-36481.md describing both entry points and their privacy caveat so users can discover the feature and its tradeoff.
Earlier concerns
Earlier reports raised these, with the titles and severities shown there. This review neither republished nor resolved them.
- [suggestion]: Rebroadcast duplicates Abandon's menu mnemonic (earlier report)