| 952 | } |
| 953 | |
| 954 | CAmount SelectionResult::GetSelectedValue() const |
| 955 | { |
| 956 | return std::accumulate(m_selected_inputs.cbegin(), m_selected_inputs.cend(), CAmount{0}, [](CAmount sum, const auto& coin) { return sum + coin->txout.nValue; }); |
| 957 | } |
| 958 | |
| 959 | CAmount SelectionResult::GetSelectedEffectiveValue() const |
| 960 | { |