From a3597e268376bb16bfd23d92c40d7d261bf7f5a5 Mon Sep 17 00:00:00 2001 From: Martin Zumsande Date: Wed, 15 Jul 2026 17:40:27 +0200 Subject: [PATCH] test: move BuildChain helper into test mining util This way, different callers can use it. The functionality is not already covered by existing helpers: These build on the active chain, while for the added function a chain built on a provided is returned and not submitted. The blockfilter tests will now use the normal TestChain100Setup. Can be reviewed with --color-moved=dimmed-zebra --color-moved-ws=ignore-all-space (the majority of code is just moved) --- src/test/blockfilter_index_tests.cpp | 62 +++------------------------- src/test/util/mining.cpp | 41 ++++++++++++++++++ src/test/util/mining.h | 9 ++++ 3 files changed, 56 insertions(+), 56 deletions(-) diff --git a/src/test/blockfilter_index_tests.cpp b/src/test/blockfilter_index_tests.cpp index 2bf0a2ed06a..5fa9a5e09b3 100644 --- a/src/test/blockfilter_index_tests.cpp +++ b/src/test/blockfilter_index_tests.cpp @@ -5,21 +5,17 @@ #include #include #include -#include -#include #include #include #include -#include #include #include -#include #include -#include #include