From d7b7bbd425ac78b866cd936f0a239215cab2a6d8 Mon Sep 17 00:00:00 2001 From: Kittywhiskers Van Gogh <63189531+kittywhiskers@users.noreply.github.com> Date: Wed, 28 Jun 2023 12:20:05 +0200 Subject: [PATCH] merge bitcoin#27988: Use same timeout for all index sync --- src/Makefile.test_util.include | 2 ++ src/test/blockfilter_index_tests.cpp | 9 ++------- src/test/coinstatsindex_tests.cpp | 15 +-------------- src/test/txindex_tests.cpp | 9 ++------- src/test/util/index.cpp | 18 ++++++++++++++++++ src/test/util/index.h | 13 +++++++++++++ 6 files changed, 38 insertions(+), 28 deletions(-) create mode 100644 src/test/util/index.cpp create mode 100644 src/test/util/index.h diff --git a/src/Makefile.test_util.include b/src/Makefile.test_util.include index d7bc73defb..baf7ab0e79 100644 --- a/src/Makefile.test_util.include +++ b/src/Makefile.test_util.include @@ -9,6 +9,7 @@ EXTRA_LIBRARIES += \ TEST_UTIL_H = \ test/util/blockfilter.h \ + test/util/index.h \ test/util/logging.h \ test/util/mining.h \ test/util/net.h \ @@ -21,6 +22,7 @@ libtest_util_a_CPPFLAGS = $(AM_CPPFLAGS) $(BITCOIN_INCLUDES) $(MINIUPNPC_CPPFLAG libtest_util_a_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS) libtest_util_a_SOURCES = \ test/util/blockfilter.cpp \ + test/util/index.cpp \ test/util/logging.cpp \ test/util/mining.cpp \ test/util/net.cpp \ diff --git a/src/test/blockfilter_index_tests.cpp b/src/test/blockfilter_index_tests.cpp index 5a84d51ae6..c3a3701f09 100644 --- a/src/test/blockfilter_index_tests.cpp +++ b/src/test/blockfilter_index_tests.cpp @@ -17,8 +17,8 @@ #include