moveonly: move COutput to coinselection.h
This commit is contained in:
1 parent
42e974e15c
commit
f0821230b8
4 files changed
+63
-63
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user