aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/spend.h
diff options
context:
space:
mode:
authorjosibake <josibake@protonmail.com>2023-10-02 14:36:53 +0200
committerjosibake <josibake@protonmail.com>2024-01-19 15:04:56 +0100
commit5ad19668dbcc47486d1c18f711cea3d8a9d2e7e2 (patch)
treeb083fd9343d7df59929bbeb19e28b688d5d3f7a0 /src/wallet/spend.h
parent47353a608dc6e20e5fd2ca53850d6f9aa3240d4a (diff)
downloadbitcoin-5ad19668dbcc47486d1c18f711cea3d8a9d2e7e2.tar.xz
refactor: simplify `CreateRecipients`
Move validation logic out of `CreateRecipients` and instead take the already validated outputs from `ParseOutputs` as an input. Move SFFO parsing out of `CreateRecipients` into a new function, `InterpretSubtractFeeFromOutputsInstructions`. This takes the SFFO instructions from `sendmany` and `sendtoaddress` and turns them into a set of integers. In a later commit, we will also move the SFFO parsing logic from `FundTransaction` into this function. Worth noting: a user can pass duplicate addresses and addresses that dont exist in the transaction outputs as SFFO args to `sendmany` and `sendtoaddress` without triggering a warning. This behavior is preserved in to keep this commit strictly a refactor.
Diffstat (limited to 'src/wallet/spend.h')
0 files changed, 0 insertions, 0 deletions