Skip to content

Commit

Permalink
Put CoinSelectOption variables private
Browse files Browse the repository at this point in the history
  • Loading branch information
cedric ogire committed Mar 17, 2023
1 parent 62abe58 commit 939f92c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/masternodes/coinselect.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,12 @@ static const std::string& ARG_STR_WALLET_COIN_OPT_SKIP_SOLVABLE = "-walletcoinop
static const std::string& ARG_STR_WALLET_COIN_OPT_EAGER_SELECT = "-walletcoinopteagerselect";

struct CoinSelectionOptions {
public:
private:
std::optional<bool> fastSelect{};
std::optional<bool> skipSolvable{};
std::optional<bool> eagerSelect{};

public:
bool IsFastSelectEnabled() const { return fastSelect.value_or(false); }
bool IsSkipSolvableEnabled() const { return skipSolvable.value_or(false); }
bool IsEagerSelectEnabled() const { return eagerSelect.value_or(false); }
Expand Down

0 comments on commit 939f92c

Please sign in to comment.