MCPcopy Create free account
hub / github.com/LUX-Core/lux / UnloadBlockIndex

Function UnloadBlockIndex

src/main.cpp:5712–5723  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5710}
5711
5712void UnloadBlockIndex()
5713{
5714 // LOCK(cs_main);
5715 setBlockIndexCandidates.clear();
5716 chainActive.SetTip(NULL);
5717 pindexBestInvalid = NULL;
5718 for (BlockMap::value_type& entry : mapBlockIndex) {
5719 delete entry.second;
5720 }
5721 mapBlockIndex.clear();
5722 fHavePruned = false;
5723}
5724
5725bool LoadBlockIndex()
5726{

Callers 1

AppInit2Function · 0.85

Calls 2

SetTipMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected