When targeting a feerate using bumpfee, call a new function that directly uses CWallet::CreateTransaction and coin control to get the desired result. This allows us to get a superset of previous behavior, with an arbitrary RBF bump of a transaction provided it passes the preconditional checks and spare confirmed utxos are available.
Note(s): 0) The coin selection will use knapsack solver for the residual selection.
- This functionality, just like knapsack coin selection in general, will hoover up negative-value inputs when given the chance.
- Newly added inputs must be confirmed due to current Core policy. See error:
replacement-adds-unconfirmed - Supporting this with
totalFeeis difficult since the "minimum total fee" option inCreateTransactionlogic was (rightly)taken out in #10390 .