From a339add471717623915cd1a846ade4dab2c89deb Mon Sep 17 00:00:00 2001 From: Andrew Chow Date: Tue, 23 Nov 2021 15:46:04 -0500 Subject: Make member variables of SelectionResult private --- src/wallet/coinselection.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/wallet/coinselection.h') diff --git a/src/wallet/coinselection.h b/src/wallet/coinselection.h index 056b1bce54..2c9a517485 100644 --- a/src/wallet/coinselection.h +++ b/src/wallet/coinselection.h @@ -199,6 +199,7 @@ struct OutputGroup struct SelectionResult { +private: /** Set of inputs selected by the algorithm to use in the transaction */ std::set 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 */ @@ -208,6 +209,7 @@ struct SelectionResult /** The computed waste */ std::optional m_waste; +public: explicit SelectionResult(const CAmount target) : m_target(target) {} -- cgit v1.2.3