From 826e12b010eda4238f9e8cd875e8915a405bed0d Mon Sep 17 00:00:00 2001 From: James O'Beirne Date: Fri, 3 Dec 2021 11:57:56 -0500 Subject: test: call VerifyLoadedChainstate during ChainTestingSetup for additional coverage and similarity to actual init process. --- src/test/util/setup_common.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src') diff --git a/src/test/util/setup_common.cpp b/src/test/util/setup_common.cpp index d0be9fe73a..eb23e8725f 100644 --- a/src/test/util/setup_common.cpp +++ b/src/test/util/setup_common.cpp @@ -195,6 +195,16 @@ TestingSetup::TestingSetup(const std::string& chainName, const std::vector(GetTime)); + assert(!maybe_verify_failure.has_value()); + BlockValidationState state; if (!m_node.chainman->ActiveChainstate().ActivateBestChain(state)) { throw std::runtime_error(strprintf("ActivateBestChain failed. (%s)", state.ToString())); -- cgit v1.2.3