Move original knapsack solver tests to coinselector_tests.cpp

This commit is contained in:
Andrew Chow
2018-03-10 00:39:29 -05:00
parent fb716f7b25
commit cd927ff328
3 changed files with 330 additions and 350 deletions

View File

@@ -69,15 +69,6 @@ const uint256 CMerkleTx::ABANDON_HASH(uint256S("00000000000000000000000000000000
* @{
*/
struct CompareValueOnly
{
bool operator()(const CInputCoin& t1,
const CInputCoin& t2) const
{
return t1.txout.nValue < t2.txout.nValue;
}
};
std::string COutput::ToString() const
{
return strprintf("COutput(%s, %d, %d) [%s]", tx->GetHash().ToString(), i, nDepth, FormatMoney(tx->tx->vout[i].nValue));