refactor: make CoinsResult total amounts members private

This commit is contained in:
furszy
2022-12-02 12:33:22 -03:00
parent 3282fad599
commit 7362f8e5e2
2 changed files with 8 additions and 4 deletions

View File

@@ -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) */