From 36c4dffb1abb651bb0e3c39f0fe7589955985cb8 Mon Sep 17 00:00:00 2001 From: "crypro.zoidberg" Date: Wed, 1 May 2019 21:43:55 +0200 Subject: [PATCH] re-fixed stresstest preparation phase --- tests/functional_tests/transactions_flow_test.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/functional_tests/transactions_flow_test.cpp b/tests/functional_tests/transactions_flow_test.cpp index 008d0743..6d60a56f 100644 --- a/tests/functional_tests/transactions_flow_test.cpp +++ b/tests/functional_tests/transactions_flow_test.cpp @@ -143,7 +143,7 @@ bool do_register_offer(tools::wallet2& w1, transaction& tx) -#define ESTIMATE_INPUTS_COUNT_LIMIT_FOR_TX_BLOWUP CURRENCY_TX_MAX_ALLOWED_OUTS +#define ESTIMATE_INPUTS_COUNT_LIMIT_FOR_TX_BLOWUP (CURRENCY_TX_MAX_ALLOWED_OUTS - 4) bool do_send_money_by_fractions(tools::wallet2& w1, tools::wallet2& w2, size_t mix_in_factor, uint64_t amount_to_transfer, transaction& tx, uint64_t fraction_size) { @@ -154,7 +154,7 @@ bool do_send_money_by_fractions(tools::wallet2& w1, tools::wallet2& w2, size_t m dsts.reserve(ESTIMATE_INPUTS_COUNT_LIMIT_FOR_TX_BLOWUP); uint64_t amount_used = 0; - for (size_t i = 0; i < ESTIMATE_INPUTS_COUNT_LIMIT_FOR_TX_BLOWUP-4; ++i) + for (size_t i = 0; i < ESTIMATE_INPUTS_COUNT_LIMIT_FOR_TX_BLOWUP; ++i) { currency::tx_destination_entry de; de.addr.push_back(w2.get_account().get_keys().m_account_address);