diff options
author | Andrew Chow <achow101-github@achow101.com> | 2022-03-21 14:33:29 -0400 |
---|---|---|
committer | Andrew Chow <achow101-github@achow101.com> | 2022-04-14 13:41:36 -0400 |
commit | 8e3f39e4fa2d8c63bc697c9ebd303965fcccea55 (patch) | |
tree | fc5204d2444e414dc7e3389af23910804c15068b /src/wallet/coinselection.h | |
parent | 15b58383d0029c4ae7b487e03cd451e1580eb91d (diff) |
wallet: Add some tracepoints for coin selection
Diffstat (limited to 'src/wallet/coinselection.h')
-rw-r--r-- | src/wallet/coinselection.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/wallet/coinselection.h b/src/wallet/coinselection.h index 44eec9a417..25c672eda0 100644 --- a/src/wallet/coinselection.h +++ b/src/wallet/coinselection.h @@ -254,16 +254,17 @@ struct SelectionResult private: /** Set of inputs selected by the algorithm to use in the transaction */ std::set<COutput> m_selected_inputs; - /** The target the algorithm selected for. Note that this may not be equal to the recipient amount as it can include non-input fees */ - const CAmount m_target; /** Whether the input values for calculations should be the effective value (true) or normal value (false) */ bool m_use_effective{false}; /** The computed waste */ std::optional<CAmount> m_waste; - /** The algorithm used to produce this result */ - SelectionAlgorithm m_algo; public: + /** The target the algorithm selected for. Note that this may not be equal to the recipient amount as it can include non-input fees */ + const CAmount m_target; + /** The algorithm used to produce this result */ + const SelectionAlgorithm m_algo; + explicit SelectionResult(const CAmount target, SelectionAlgorithm algo) : m_target(target), m_algo(algo) {} |