From 97844d9268b87b5d09b1091bfd0326ed18ce5b91 Mon Sep 17 00:00:00 2001 From: Martin Zumsande Date: Mon, 23 May 2022 21:07:29 +0200 Subject: index: Enable reindex-chainstate with active indexes This is achieved by letting the index sync thread wait until reindex-chainstate is finished. This also disables the pruning check when reindexing the chainstate (which is incompatible with prune mode) because there would be no chain at this point in init. --- src/test/util/setup_common.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/test') diff --git a/src/test/util/setup_common.cpp b/src/test/util/setup_common.cpp index 62d60d6774..eedb406cbd 100644 --- a/src/test/util/setup_common.cpp +++ b/src/test/util/setup_common.cpp @@ -155,6 +155,7 @@ BasicTestingSetup::BasicTestingSetup(const ChainType chainType, const std::vecto noui_connect(); noui_connected = true; } + node::g_indexes_ready_to_sync = true; } BasicTestingSetup::~BasicTestingSetup() -- cgit v1.2.3