From fa54b3e2485f701aa420c37f09a2859a5b805161 Mon Sep 17 00:00:00 2001 From: MarcoFalke Date: Fri, 20 Sep 2019 14:02:16 -0400 Subject: [PATCH 1/2] test: move-only ComputeFilter to src/test/lib/blockfilter --- src/Makefile.test.include | 4 +++- src/test/blockfilter_index_tests.cpp | 20 ++------------------ src/test/lib/blockfilter.cpp | 26 ++++++++++++++++++++++++++ src/test/lib/blockfilter.h | 13 +++++++++++++ 4 files changed, 44 insertions(+), 19 deletions(-) create mode 100644 src/test/lib/blockfilter.cpp create mode 100644 src/test/lib/blockfilter.h diff --git a/src/Makefile.test.include b/src/Makefile.test.include index c3f0120005..a4cf78d61b 100644 --- a/src/Makefile.test.include +++ b/src/Makefile.test.include @@ -56,8 +56,10 @@ RAW_TEST_FILES = GENERATED_TEST_FILES = $(JSON_TEST_FILES:.json=.json.h) $(RAW_TEST_FILES:.raw=.raw.h) BITCOIN_TEST_SUITE = \ - test/lib/transaction_utils.h \ + test/lib/blockfilter.cpp \ + test/lib/blockfilter.h \ test/lib/transaction_utils.cpp \ + test/lib/transaction_utils.h \ test/main.cpp \ test/setup_common.h \ test/setup_common.cpp diff --git a/src/test/blockfilter_index_tests.cpp b/src/test/blockfilter_index_tests.cpp index ba293b7836..fc2848f922 100644 --- a/src/test/blockfilter_index_tests.cpp +++ b/src/test/blockfilter_index_tests.cpp @@ -8,8 +8,9 @@ #include #include #include -#include #include