aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/coinselection.h
diff options
context:
space:
mode:
authorS3RK <1466284+S3RK@users.noreply.github.com>2022-07-06 08:51:22 +0200
committerS3RK <1466284+S3RK@users.noreply.github.com>2022-08-15 09:34:38 +0200
commit06f558e4e2164d1916f258c731efe4586728a23b (patch)
treeb6331a743c0454d1120293f6ade842503714609e /src/wallet/coinselection.h
parentc8cf08ea743e430c2bf3fe46439594257b0937e5 (diff)
downloadbitcoin-06f558e4e2164d1916f258c731efe4586728a23b.tar.xz
wallet: accurate SelectionResult::m_target
SelectionResult::m_target should be equal to actual selection target. Selection target is the sum of all recipient amounts plus non input fees. So we need to remove change_fee from the m_target. It's safe because change target is always greater than the change fee, so we can always cover fees if change output is created.
Diffstat (limited to 'src/wallet/coinselection.h')
0 files changed, 0 insertions, 0 deletions