Open
Description
BudgetInputSet.AddWalletInputs
currently restores the original inputs if there aren't enough wallet inputs to meet the budget.
Lines 297 to 327 in 9d358bc
But if createWalletTxInput
returns an error, the original inputs are not restored.
Solution
Today createWalletTxInput
shouldn't ever return an error, though it may in the future if a new witness type is added. We should unify all error paths in AddWalletInputs
to ensure inputs are restored.