Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/test/coinselector_tests.cpp
Show First 20 Lines • Show All 142 Lines • ▼ Show 20 Lines | BOOST_AUTO_TEST_CASE(bnb_search_test) { | ||||
CoinSet selection; | CoinSet selection; | ||||
CoinSet actual_selection; | CoinSet actual_selection; | ||||
Amount value_ret = Amount::zero(); | Amount value_ret = Amount::zero(); | ||||
Amount not_input_fees = Amount::zero(); | Amount not_input_fees = Amount::zero(); | ||||
///////////////////////// | ///////////////////////// | ||||
// Known Outcome tests // | // Known Outcome tests // | ||||
///////////////////////// | ///////////////////////// | ||||
BOOST_TEST_MESSAGE("Testing known outcomes"); | |||||
// Empty utxo pool | // Empty utxo pool | ||||
BOOST_CHECK(!SelectCoinsBnB(GroupCoins(utxo_pool), 1 * CENT, CENT / 2, | BOOST_CHECK(!SelectCoinsBnB(GroupCoins(utxo_pool), 1 * CENT, CENT / 2, | ||||
selection, value_ret, not_input_fees)); | selection, value_ret, not_input_fees)); | ||||
selection.clear(); | selection.clear(); | ||||
// Add utxos | // Add utxos | ||||
add_coin(1 * CENT, 1, utxo_pool); | add_coin(1 * CENT, 1, utxo_pool); | ||||
▲ Show 20 Lines • Show All 616 Lines • Show Last 20 Lines |