diff options
author | josibake <josibake@protonmail.com> | 2022-03-25 20:57:40 +0100 |
---|---|---|
committer | josibake <josibake@protonmail.com> | 2022-07-19 18:42:15 +0200 |
commit | 438e04845bf3302b7f459a50e88a1b772527f1e6 (patch) | |
tree | 03d7d123182583c6e46b6525dd806ed15b908c5b /src/script/interpreter.cpp | |
parent | 77b07072061c59f50c69be29fbcddf0d433e1077 (diff) |
wallet: run coin selection by `OutputType`
Run coin selection on each OutputType separately, choosing the best
solution according to the waste metric.
This is to avoid mixing UTXOs that are of different OutputTypes,
which can hurt privacy.
If no single OutputType can fund the transaction, then coin selection
considers the entire wallet, potentially mixing (current behavior).
This is done inside AttemptSelection so that all OutputTypes are
considered at each back-off in coin selection.
Diffstat (limited to 'src/script/interpreter.cpp')
0 files changed, 0 insertions, 0 deletions