MCPcopy Create free account
hub / github.com/WaykiChain/WaykiChain / UnloadBlockIndex

Function UnloadBlockIndex

src/main.cpp:2380–2385  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2378}
2379
2380void UnloadBlockIndex() {
2381 mapBlockIndex.clear();
2382 setBlockIndexValid.clear();
2383 chainActive.SetTip(nullptr, nullptr);
2384 pIndexBestInvalid = nullptr;
2385}
2386
2387bool LoadBlockIndex() {
2388 // Load block index from databases

Callers 1

AppInitFunction · 0.85

Calls 2

SetTipMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected