diff options
author | Andrew Chow <achow101-github@achow101.com> | 2021-05-21 18:15:55 -0400 |
---|---|---|
committer | Andrew Chow <achow101-github@achow101.com> | 2021-12-05 13:43:28 -0500 |
commit | bb50850a447bdf461ffb76d47d4a4db904fce324 (patch) | |
tree | e0597868b08085a7036744684adac6976afb94c5 /src/wallet/coinselection.h | |
parent | e8f7ae5eb3c682d1a80b503f71e06ce76af1b65c (diff) | |
download | bitcoin-bb50850a447bdf461ffb76d47d4a4db904fce324.tar.xz |
Use SelectionResult for waste calculation
Diffstat (limited to 'src/wallet/coinselection.h')
-rw-r--r-- | src/wallet/coinselection.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wallet/coinselection.h b/src/wallet/coinselection.h index aa5ec822ec..637afcdb2b 100644 --- a/src/wallet/coinselection.h +++ b/src/wallet/coinselection.h @@ -187,6 +187,8 @@ struct OutputGroup * where excess = selected_effective_value - target * change_cost = effective_feerate * change_output_size + long_term_feerate * change_spend_size * + * Note this function is separate from SelectionResult for the tests. + * * @param[in] inputs The selected inputs * @param[in] change_cost The cost of creating change and spending it in the future. * Only used if there is change, in which case it must be positive. |