validation: default initialize and guard chainman members

This commit is contained in:
Anthony Towns
2022-04-15 07:47:20 +10:00
committed by Carl Dong
parent 98f4bdae81
commit 6e747e80e7
3 changed files with 6 additions and 6 deletions

View File

@@ -93,7 +93,7 @@ BOOST_FIXTURE_TEST_CASE(chainstate_update_tip, TestChain100Setup)
BOOST_REQUIRE(CreateAndActivateUTXOSnapshot(m_node, m_path_root));
// Ensure our active chain is the snapshot chainstate.
BOOST_CHECK(chainman.IsSnapshotActive());
BOOST_CHECK(WITH_LOCK(::cs_main, return chainman.IsSnapshotActive()));
curr_tip = ::g_best_block;