Adds a regression test for the wallet’s ResendWalletTransactions function, which uses a new, hidden RPC command “resendwallettransactions.”
I refactored main’s Broadcast signal so it is passed the best-block time, which let me remove a global variable shared between main.cpp and the wallet (nTimeBestReceived).
I also manually tested the “rebroadcast unconfirmed every half hour or so” functionionality by:
- Running bitcoind -connect=0.0.0.0:8333
- Creating a couple of send-to-self transactions
- Connect to a peer using -addnode
- Waited a while, monitoring debug.log, until I see:
2015-03-23 18:48:10 ResendWalletTransactions: rebroadcast 2 unconfirmed transactions
One last change with this pull request: don’t bother putting ResendWalletTransactions messages in debug.log unless unconfirmed transactions were actually rebroadcast.