diff options
author | S3RK <1466284+S3RK@users.noreply.github.com> | 2022-07-06 08:15:20 +0200 |
---|---|---|
committer | S3RK <1466284+S3RK@users.noreply.github.com> | 2022-08-15 09:34:38 +0200 |
commit | e3210a722542a9cb5f7e4be72470dbe488c281fd (patch) | |
tree | c9715d020b24b0c479d4eb5a43cf45038a5e5070 /src/wallet/coinselection.h | |
parent | f8e796348b644c011ad9a8312356d4426c16cc4b (diff) |
wallet: account for preselected inputs in target
When we have preselected inputs the coin selection search target is reduced
by the sum of (effective) values. This causes incorrect m_target value.
Create separate instance of SelectionResult for all the preselected inputs and
set the target equal to the sum of (effective) values. Target for preselected
SelectionResult is equal to the delta for the search target. To get the final
SelectionResult with accurate m_target we merge both SelectionResult instances.
Diffstat (limited to 'src/wallet/coinselection.h')
0 files changed, 0 insertions, 0 deletions