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/bench/ccoins_caching.cpp | 42 +++------------------------------- src/test/transaction_tests.cpp | 45 +++++-------------------------------- src/test/util/transaction_utils.cpp | 32 ++++++++++++++++++++++++++ src/test/util/transaction_utils.h | 10 +++++++++ 4 files changed, 50 insertions(+), 79 deletions(-) diff --git a/src/bench/ccoins_caching.cpp b/src/bench/ccoins_caching.cpp index c313029ea8..e9dd40293f 100644 --- a/src/bench/ccoins_caching.cpp +++ b/src/bench/ccoins_caching.cpp @@ -6,47 +6,10 @@ #include #include #include