This is only called from ResendWalletTransactions(), so bring it inline.
https://github.com/bitcoin/bitcoin/pull/15680/commits/ea1a2d8794ffb6b814e7120fb8ba0cc4aa7ebf3d
---
Depends on D5951
This completes the backport of Core [[https://github.com/bitcoin/bitcoin/pull/15680 | PR15680]]