COutputs available for spending, stored by OutputType.
More...
#include <spend.h>
COutputs available for spending, stored by OutputType.
This struct is really just a wrapper around OutputType vectors with a convenient method for concatenating and returning all COutputs as one vector.
Size(), Clear(), Erase(), Shuffle(), and Add() methods are implemented to allow easy interaction with the struct.
Definition at line 46 of file spend.h.
◆ Add()
◆ All()
| std::vector< COutput > wallet::CoinsResult::All |
( |
| ) |
const |
Concatenate and return all COutputs as one vector.
Definition at line 203 of file spend.cpp.
◆ Clear()
| void wallet::CoinsResult::Clear |
( |
| ) |
|
◆ Erase()
◆ GetAppropriateTotal()
| std::optional< CAmount > wallet::CoinsResult::GetAppropriateTotal |
( |
bool | subtract_fee_outputs | ) |
const |
|
inline |
◆ GetEffectiveTotalAmount()
| std::optional< CAmount > wallet::CoinsResult::GetEffectiveTotalAmount |
( |
| ) |
const |
|
inline |
◆ GetTotalAmount()
| CAmount wallet::CoinsResult::GetTotalAmount |
( |
| ) |
const |
|
inline |
◆ Shuffle()
◆ Size()
| size_t wallet::CoinsResult::Size |
( |
| ) |
const |
The following methods are provided so that CoinsResult can mimic a vector, i.e., methods can work with individual OutputType vectors or on the entire object.
Definition at line 194 of file spend.cpp.
◆ TypesCount()
| size_t wallet::CoinsResult::TypesCount |
( |
| ) |
const |
|
inline |
Return how many different output types this struct stores.
Definition at line 56 of file spend.h.
◆ coins
◆ total_amount
| CAmount wallet::CoinsResult::total_amount {0} |
|
private |
Sum of all available coins raw value.
Definition at line 71 of file spend.h.
◆ total_effective_amount
| std::optional<CAmount> wallet::CoinsResult::total_effective_amount |
|
private |
Sum of all available coins effective value (each output value minus fees required to spend it).
Definition at line 73 of file spend.h.
The documentation for this struct was generated from the following files: