Followup to #18038 by amitiuttarwar which introduces the unbroadcast set: “a mechanism for the mempool to track locally submitted transactions” and decreases the frequency of rebroadcast from 10-15 minutes to 12-36 hours.
This PR addresses some of the outstanding TODOs building on top of it:
- remove
nLastResend
logic, which is used to ensure rebroadcast doesn’t happen again if no new block has been mined (makes sense in 10-15 min period, but not necessary for 12-36 hour period). (#18038 comment) - expose unbroadcast info via RPCs, for more informative queries and testing (#18038 comment)
- add sanity check to verify unbroadcast transactions still exist in mempool before rebroadcasting (#18038 comment)