moveonly: move COutput to coinselection.h

This commit is contained in:
Andrew Chow
2022-01-17 16:13:02 -05:00
parent 42e974e15c
commit f0821230b8
4 changed files with 63 additions and 63 deletions

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