aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/coinselection.h
diff options
context:
space:
mode:
authorAndrew Chow <achow101-github@achow101.com>2021-05-21 18:15:55 -0400
committerAndrew Chow <achow101-github@achow101.com>2021-12-05 13:43:28 -0500
commitbb50850a447bdf461ffb76d47d4a4db904fce324 (patch)
treee0597868b08085a7036744684adac6976afb94c5 /src/wallet/coinselection.h
parente8f7ae5eb3c682d1a80b503f71e06ce76af1b65c (diff)
downloadbitcoin-bb50850a447bdf461ffb76d47d4a4db904fce324.tar.xz
Use SelectionResult for waste calculation
Diffstat (limited to 'src/wallet/coinselection.h')
-rw-r--r--src/wallet/coinselection.h2
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.