mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-19 13:27:35 +02:00
Move original knapsack solver tests to coinselector_tests.cpp
This commit is contained in:
parent
fb716f7b25
commit
cd927ff328
3 changed files with 330 additions and 350 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue