diff options
author | furszy <matiasfurszyfer@protonmail.com> | 2022-12-02 12:33:22 -0300 |
---|---|---|
committer | furszy <matiasfurszyfer@protonmail.com> | 2022-12-02 12:39:16 -0300 |
commit | 7362f8e5e2497bc1ef27bfa871fc6dd306dd33c3 (patch) | |
tree | cb2b8df5cc02af838217135df819f8ceb900f2fc /src/wallet/spend.h | |
parent | 3282fad59908da328f8323e1213344fe58ccf69e (diff) | |
download | bitcoin-7362f8e5e2497bc1ef27bfa871fc6dd306dd33c3.tar.xz |
refactor: make CoinsResult total amounts members private
Diffstat (limited to 'src/wallet/spend.h')
-rw-r--r-- | src/wallet/spend.h | 4 |
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) */ |