From 7bf4ce4f644bb7dac9b63172c656b5d599eedea3 Mon Sep 17 00:00:00 2001 From: Sebastian Falbesoner Date: Tue, 18 Feb 2020 17:11:16 +0100 Subject: refactor: test/bench: dedup SetupDummyInputs() The only difference between SetupDummyInputs() in test/transaction_tests.cpp and the one in bench/ccoins_caching.cpp was the nValue amounts of the outputs, so we allow to pass those in an extra (fixed-size) array parameter. --- src/test/util/transaction_utils.cpp | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to 'src/test/util/transaction_utils.cpp') diff --git a/src/test/util/transaction_utils.cpp b/src/test/util/transaction_utils.cpp index 90b78effb..999b803a8 100644 --- a/src/test/util/transaction_utils.cpp +++ b/src/test/util/transaction_utils.cpp @@ -3,6 +3,8 @@ // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include +#include +#include