aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/coinselection.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wallet/coinselection.h')
-rw-r--r--src/wallet/coinselection.h27
1 files changed, 13 insertions, 14 deletions
diff --git a/src/wallet/coinselection.h b/src/wallet/coinselection.h
index 2e20efa8c1..784a91e827 100644
--- a/src/wallet/coinselection.h
+++ b/src/wallet/coinselection.h
@@ -19,9 +19,7 @@ static constexpr CAmount CHANGE_LOWER{50000};
static constexpr CAmount CHANGE_UPPER{1000000};
/** A UTXO under consideration for use in funding a new transaction. */
-class COutput
-{
-public:
+struct COutput {
/** The outpoint identifying this UTXO */
COutPoint outpoint;
@@ -67,21 +65,22 @@ public:
CAmount long_term_fee{0};
COutput(const COutPoint& outpoint, const CTxOut& txout, int depth, int input_bytes, bool spendable, bool solvable, bool safe, int64_t time, bool from_me)
- : outpoint(outpoint),
- txout(txout),
- depth(depth),
- input_bytes(input_bytes),
- spendable(spendable),
- solvable(solvable),
- safe(safe),
- time(time),
- from_me(from_me),
- effective_value(txout.nValue)
+ : outpoint{outpoint},
+ txout{txout},
+ depth{depth},
+ input_bytes{input_bytes},
+ spendable{spendable},
+ solvable{solvable},
+ safe{safe},
+ time{time},
+ from_me{from_me},
+ effective_value{txout.nValue}
{}
std::string ToString() const;
- bool operator<(const COutput& rhs) const {
+ bool operator<(const COutput& rhs) const
+ {
return outpoint < rhs.outpoint;
}
};