MCPcopy Create free account
hub / github.com/ElementsProject/elements / UnloadBlockIndex

Method UnloadBlockIndex

src/validation.cpp:4526–4531  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4524}
4525
4526void CChainState::UnloadBlockIndex()
4527{
4528 AssertLockHeld(::cs_main);
4529 nBlockSequenceId = 1;
4530 setBlockIndexCandidates.clear();
4531}
4532
4533// May NOT be used after any connections are up as much
4534// of the peer-processing logic assumes a consistent

Callers 2

UnloadMethod · 0.80
BOOST_FIXTURE_TEST_CASEFunction · 0.80

Calls 1

clearMethod · 0.45

Tested by 1

BOOST_FIXTURE_TEST_CASEFunction · 0.64