aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2016-04-26 18:02:26 +0200
committerRiccardo Spagni <ric@spagni.net>2016-04-26 18:02:26 +0200
commit0922ae2b43bd1e46ba3d7e4391d4f79d48462aa2 (patch)
tree4972d548d12be851c93445e3f0cc83ceeea4bf3f /tests
parentMerge pull request #806 (diff)
parenttests: fix compile failure on wallet2::transfer (diff)
downloadmonero-0922ae2b43bd1e46ba3d7e4391d4f79d48462aa2.tar.xz
Merge pull request #811
672162d tests: fix compile failure on wallet2::transfer (moneromooo-monero) b0c18ef wallet2: move output selection api public (moneromooo-monero)
Diffstat (limited to '')
-rw-r--r--tests/functional_tests/transactions_flow_test.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/functional_tests/transactions_flow_test.cpp b/tests/functional_tests/transactions_flow_test.cpp
index 159ccfd83..6bf910101 100644
--- a/tests/functional_tests/transactions_flow_test.cpp
+++ b/tests/functional_tests/transactions_flow_test.cpp
@@ -85,7 +85,8 @@ bool do_send_money(tools::wallet2& w1, tools::wallet2& w2, size_t mix_in_factor,
try
{
tools::wallet2::pending_tx ptx;
- w1.transfer(dsts, mix_in_factor, 0, TEST_FEE, std::vector<uint8_t>(), tools::detail::null_split_strategy, tools::tx_dust_policy(TEST_DUST_THRESHOLD), tx, ptx, true);
+ std::vector<size_t> indices = w1.select_available_outputs([](const tools::wallet2::transfer_details&) { return true; });
+ w1.transfer(dsts, mix_in_factor, indices, 0, TEST_FEE, std::vector<uint8_t>(), tools::detail::null_split_strategy, tools::tx_dust_policy(TEST_DUST_THRESHOLD), tx, ptx, true);
w1.commit_tx(ptx);
return true;
}