From e625539758b29cefcc518bab0ffec87ef9172288 Mon Sep 17 00:00:00 2001 From: sowle Date: Fri, 8 Jan 2021 23:52:46 +0300 Subject: [PATCH] coretests: construct_tx_with_many_outputs made familiar with ref_by_id --- tests/core_tests/chaingen.cpp | 4 ++-- tests/core_tests/chaingen.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/core_tests/chaingen.cpp b/tests/core_tests/chaingen.cpp index 7270a4af..00c26e1e 100644 --- a/tests/core_tests/chaingen.cpp +++ b/tests/core_tests/chaingen.cpp @@ -1548,10 +1548,10 @@ transaction construct_tx_with_fee(std::vector& events, const b bool construct_tx_with_many_outputs(std::vector& events, const currency::block& blk_head, const currency::account_keys& keys_from, const currency::account_public_address& addr_to, - uint64_t total_amount, size_t outputs_count, uint64_t fee, currency::transaction& tx) + uint64_t total_amount, size_t outputs_count, uint64_t fee, currency::transaction& tx, bool use_ref_by_id /* = false */) { std::vector sources; - bool r = fill_tx_sources(sources, events, blk_head, keys_from, total_amount + fee, 0, true, false, false); + bool r = fill_tx_sources(sources, events, blk_head, keys_from, total_amount + fee, 0, true, false, use_ref_by_id); CHECK_AND_ASSERT_MES(r, false, "fill_tx_sources failed"); std::vector destinations; diff --git a/tests/core_tests/chaingen.h b/tests/core_tests/chaingen.h index 44a64a75..c5731018 100644 --- a/tests/core_tests/chaingen.h +++ b/tests/core_tests/chaingen.h @@ -599,7 +599,7 @@ currency::transaction construct_tx_with_fee(std::vector& event bool construct_tx_with_many_outputs(std::vector& events, const currency::block& blk_head, const currency::account_keys& keys_from, const currency::account_public_address& addr_to, - uint64_t total_amount, size_t outputs_count, uint64_t fee, currency::transaction& tx); + uint64_t total_amount, size_t outputs_count, uint64_t fee, currency::transaction& tx, bool use_ref_by_id = false); void get_confirmed_txs(const std::vector& blockchain, const map_hash2tx_t& mtx, map_hash2tx_t& confirmed_txs); bool find_block_chain(const std::vector& events, std::vector& blockchain, map_hash2tx_t& mtx, const crypto::hash& head);