diff options
author | Andrew Chow <achow101-github@achow101.com> | 2021-11-23 15:46:04 -0500 |
---|---|---|
committer | Andrew Chow <achow101-github@achow101.com> | 2021-12-05 13:39:51 -0500 |
commit | a339add471717623915cd1a846ade4dab2c89deb (patch) | |
tree | ba08446f838452558473c97d7882edccd8b14cc0 /src/wallet/coinselection.h | |
parent | cbf0b9f4ff438865a71c7ceb0a543c18a34f41f0 (diff) | |
download | bitcoin-a339add471717623915cd1a846ade4dab2c89deb.tar.xz |
Make member variables of SelectionResult private
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 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<CInputCoin> 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<CAmount> m_waste; +public: explicit SelectionResult(const CAmount target) : m_target(target) {} |