diff --git a/src/Makefile.bench.include b/src/Makefile.bench.include --- a/src/Makefile.bench.include +++ b/src/Makefile.bench.include @@ -34,7 +34,9 @@ bench/lockedpool.cpp \ bench/prevector.cpp \ test/setup_common.h \ - test/setup_common.cpp + test/setup_common.cpp \ + test/util.h \ + test/util.cpp nodist_bench_bench_bitcoin_SOURCES = $(GENERATED_BENCH_FILES) diff --git a/src/bench/CMakeLists.txt b/src/bench/CMakeLists.txt --- a/src/bench/CMakeLists.txt +++ b/src/bench/CMakeLists.txt @@ -57,6 +57,8 @@ # TODO: make a test library ../test/setup_common.cpp + ../test/util.cpp + # Add the generated headers to trigger the conversion command ${BENCH_DATA_GENERATED_HEADERS} diff --git a/src/bench/block_assemble.cpp b/src/bench/block_assemble.cpp --- a/src/bench/block_assemble.cpp +++ b/src/bench/block_assemble.cpp @@ -3,47 +3,15 @@ // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include -#include #include -#include #include -#include -#include -#include +#include