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/transaction_tests.cpp | 45 +++++------------------------------------- 1 file changed, 5 insertions(+), 40 deletions(-) (limited to 'src/test/transaction_tests.cpp') diff --git a/src/test/transaction_tests.cpp b/src/test/transaction_tests.cpp index 0352d2d95..ee9ff8ed3 100644 --- a/src/test/transaction_tests.cpp +++ b/src/test/transaction_tests.cpp @@ -22,6 +22,7 @@ #include