aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorMartin Zumsande <mzumsande@gmail.com>2022-05-23 21:07:29 +0200
committerMartin Zumsande <mzumsande@gmail.com>2023-05-17 11:14:28 -0400
commit97844d9268b87b5d09b1091bfd0326ed18ce5b91 (patch)
treea5f5056ea6825feb4b22e3533cd43025b29c4932 /src/test
parent60bec3c82d09ec208bf0028ad32499e251ad205e (diff)
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.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/util/setup_common.cpp1
1 files changed, 1 insertions, 0 deletions
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()