moveonly: move COutput to coinselection.h

This commit is contained in:
Andrew Chow committed 2022-03-23 14:32:07 -04:00
1 parent 42e974e15c
commit f0821230b8
4 files changed
+63 -63

No files matched your search

+5
View File
@@ -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