🟠Major
Periodic rebroadcast still depends on walletbroadcast (src/wallet/wallet.cpp:1922, head)
With -walletbroadcast=0 -walletrebroadcast=1, the new gate permits periodic resubmission, but SubmitTxMemoryPoolAndRelay() still checks GetBroadcastTransactions() and returns false before submitting or relaying. As a result, the two options do not operate independently. Separate the initial-broadcast policy from periodic submission so -walletrebroadcast controls periodic relay independently.
Disabling rebroadcasts blocks local mempool restoration (src/wallet/wallet.cpp:1922, head)
With the new default -walletrebroadcast=0, this unconditional return also blocks forced local submissions that restore unconfirmed wallet transactions to the node’s mempool. postInitProcess() calls this function with MEMPOOL_NO_BROADCAST and force=true; descriptor import and rescan do likewise. These calls do not relay to peers. Preserve forced, non-relaying mempool restoration while using this option to control periodic rebroadcasts.
🟡 Minor
Test the new rebroadcast configurations (test/functional/wallet_resendwallettransactions.py:28, head)
This test enables -walletrebroadcast=1 for both nodes, so it does not cover the new default or whether periodic relay is independent of initial broadcasting. Add cases that check the default-disabled periodic behavior while preserving initial broadcasts, and periodic relay with -walletbroadcast=0 -walletrebroadcast=1. Use the existing mocktime setup and distinguish wallet-driven periodic relay from node-level initial-broadcast retries.