aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/spend.h
diff options
context:
space:
mode:
authorfurszy <matiasfurszyfer@protonmail.com>2022-12-02 12:33:22 -0300
committerfurszy <matiasfurszyfer@protonmail.com>2022-12-02 12:39:16 -0300
commit7362f8e5e2497bc1ef27bfa871fc6dd306dd33c3 (patch)
treecb2b8df5cc02af838217135df819f8ceb900f2fc /src/wallet/spend.h
parent3282fad59908da328f8323e1213344fe58ccf69e (diff)
downloadbitcoin-7362f8e5e2497bc1ef27bfa871fc6dd306dd33c3.tar.xz
refactor: make CoinsResult total amounts members private
Diffstat (limited to 'src/wallet/spend.h')
-rw-r--r--src/wallet/spend.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/wallet/spend.h b/src/wallet/spend.h
index 8612ce49ad..2b861c2361 100644
--- a/src/wallet/spend.h
+++ b/src/wallet/spend.h
@@ -51,6 +51,10 @@ struct CoinsResult {
void Shuffle(FastRandomContext& rng_fast);
void Add(OutputType type, const COutput& out);
+ CAmount GetTotalAmount() { return total_amount; }
+ std::optional<CAmount> GetEffectiveTotalAmount() {return total_effective_amount; }
+
+private:
/** Sum of all available coins raw value */
CAmount total_amount{0};
/** Sum of all available coins effective value (each output value minus fees required to spend it) */