diff options
author | Andrew Chow <achow101-github@achow101.com> | 2022-01-17 16:13:02 -0500 |
---|---|---|
committer | Andrew Chow <achow101-github@achow101.com> | 2022-03-23 14:32:07 -0400 |
commit | f0821230b8de2eec21a869d1edf9e2b9f502de25 (patch) | |
tree | fc8a65ba9b4face0acf9ceb2e15a9d6128c29b7b /src/wallet/coinselection.cpp | |
parent | 42e974e15c6deba1d9395a4da9341c9ebec6e8e5 (diff) |
moveonly: move COutput to coinselection.h
Diffstat (limited to 'src/wallet/coinselection.cpp')
-rw-r--r-- | src/wallet/coinselection.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/wallet/coinselection.cpp b/src/wallet/coinselection.cpp index 513572da45..08c36de38a 100644 --- a/src/wallet/coinselection.cpp +++ b/src/wallet/coinselection.cpp @@ -432,4 +432,9 @@ bool SelectionResult::operator<(SelectionResult other) const // As this operator is only used in std::min_element, we want the result that has more inputs when waste are equal. return *m_waste < *other.m_waste || (*m_waste == *other.m_waste && m_selected_inputs.size() > other.m_selected_inputs.size()); } + +std::string COutput::ToString() const +{ + return strprintf("COutput(%s, %d, %d) [%s]", outpoint.hash.ToString(), outpoint.n, depth, FormatMoney(txout.nValue)); +} } // namespace wallet |